diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-07-26 11:32:43 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-07-26 11:32:43 +0200 |
| commit | e0f9c092ccefc0516d06a9dc7f66e650eee888cf (patch) | |
| tree | 0c404769dc28af133425cf9756a83569c70b31f3 /doc | |
| parent | 7d78795f8b34bc6a8afde18427a1c26901824db3 (diff) | |
| parent | 1d6d790513e3f1177dc0059f2ba4a06de6d87ac2 (diff) | |
[MERGE] forward port branch saas-12.2 up to 1d6d790513e
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/cla/individual/ddufresne.md | 11 | ||||
| -rw-r--r-- | doc/howtos/profilecode.rst | 9 |
2 files changed, 18 insertions, 2 deletions
diff --git a/doc/cla/individual/ddufresne.md b/doc/cla/individual/ddufresne.md new file mode 100644 index 00000000000..ca210353726 --- /dev/null +++ b/doc/cla/individual/ddufresne.md @@ -0,0 +1,11 @@ +Canada, 2019-07-22 + +I hereby agree to the terms of the Odoo Individual Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +David Dufresne 27902736+ddufresne@users.noreply.github.com https://github.com/ddufresne 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(...): |
