Tutorial profiling code
Learn how to profile Python code
This app contains all the code you need to profile code in Odoo.
All the code is documented inline with notes and extra information to understand how the profiling tool works.
- Two new buttons named 'Profile bad function' and 'Profile good function' on the contacts form.
- Two new Python functions named 'find_duplicate_contacts_bad_perf' and 'find_duplicate_contacts_good_perf' to demonstrate performance difference in profilers.
- Inherit of the model 'res.partner'
- Inline comments explaining the profiler
You can see the result of these functions by opening the logfile on your server.
For example: tail -f /var/log/your_odoo.log
You will see the output from the profile functions in your logfile.
Need more information or have questions about this module? Contact us at email@example.com.