Profiling code in Odoo
Since Odoo 11 a new tool was added to Odoo, named the profiler. This tool will allow you to see how code is behaving and how long every part of the code takes. This tool is especially handy if your code has to process big amounts of data or if you're facing performance issues in your code. In this tutorial you will learn how to use this profiler and how to identify issues in your code. We will inherit the 'res.partner' model and will create two Python functions. One function that has bad performance and one that has good performance. We'll look at the output and see how performance has been impacted by bad code.