summaryrefslogtreecommitdiff
path: root/doc/howtos
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-07-25 18:38:32 +0200
committerChristophe Simonis <chs@odoo.com>2019-07-25 18:38:32 +0200
commitb82df99d7a86fa3bc2670f00a0ef025263362cda (patch)
tree40e4adacf341e6fe3b441d1272881d0f0738e70e /doc/howtos
parent7702d07d39eadf700faad67da42bfee10fb0cd93 (diff)
parent5f419d4ad33a56c9c57893b749ab460574481d01 (diff)
[MERGE] forward port branch saas-11.3 up to 5f419d4ad33
Diffstat (limited to 'doc/howtos')
-rw-r--r--doc/howtos/profilecode.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/howtos/profilecode.rst b/doc/howtos/profilecode.rst
index ed6d2640648..d21c1f3891c 100644
--- a/doc/howtos/profilecode.rst
+++ b/doc/howtos/profilecode.rst
@@ -17,7 +17,7 @@ its sub-called methods.
.. code:: python
- from odoo.tools.profiler import profile
+ from odoo.tools.misc import profile
[...]
@profile('/temp/prof.profile')
@api.multi
@@ -37,10 +37,15 @@ A tool called *xdot* will display the resulting graph:
xdot /temp/prof.xdot
-The profiler can be also used without saving data in a file:
+Log a method
+============
+
+Another profiler can be used to log statistics on a method:
.. code:: python
+ from odoo.tools.profiler import profile
+ [...]
@profile
@api.model
def mymethod(...):