[MERGE] forward port branch saas-11.3 up to 5f419d4ad3

This commit is contained in:
Christophe Simonis
2019-07-25 18:38:32 +02:00
7 changed files with 47 additions and 12 deletions
+7 -2
View File
@@ -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(...):