Odoo has a profiler, but you have to know which page to profile. The web client sends almost every action to one URL, /web/dataset/call_kw/<model>/<method>, so a request log by URL tells you nothing.
Disclosure: I make a paid Odoo module that does this measuring (link at the bottom).
What helps is naming the call by model and method, removing ids so all orders count as one page, and measuring duration and query count per call. Buffer the measurements in memory and write them in one batch every 15 seconds, so it adds no database write per request.
On a demo database I found something I hadn't looked for: the Contacts app calls res.company.iap_enrich_auto on every load and it took about 2 seconds each time, because it tries to reach Odoo's IAP service, which my sandbox can't. On a server with internet access it would likely be faster, but it is the sort of thing you'd never spot by feel.
I turned this into a module that lists pages slowest first by total time, with the average, the time 95% of calls stay within, queries per call, and the latest slow requests with who ran them. It's called Slow Page Finder, 19 EUR on the Apps Store: https://apps.odoo.com/apps/modules/19.0/slow_page_finder/
It measures server time only, not browser rendering.
Top comments (0)