Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!


Project description

License: AGPL-3


Integration of cProfile and PgBadger.


To install this module, you need the following requirements:

  • Install pgbadger binary package.
  • Install pstats_print2list python package.
  • Set PG_LOG_PATH environment variable to know location of the postgresql.log file by default is /var/lib/postgresql/9.X/main/pg_log/postgresql.log
  • Enable postgresql logs from postgresql’s configuration file (Default location for Linux Debian is /etc/postgresql/*/main/postgresql.conf) - Add the following lines at final (A postgresql restart is required /etc/init.d/postgresql restart)
log_line_prefix='%t [%p]: [%l-1] db=%d,user=%u '


By default profiler module adds two system parameters
  • exclude_fnames > ‘/.repo_requirements,~/odoo-8.0,/usr/,>’
  • exclude_query > ‘ir_translation’.

These parameters can be configurated in order to exclude some outputs from profiling stats or pgbadger output.


After installation, a player is add on the header bar, with following buttons:

  • Player to manage profiler
  • Start profiling
    • Start profiling
  • Stop profiling
    • Stop profiling
  • Download stats: download stats file
    • Download cprofile stats file
  • Clear stats
    • Clear and remove stats file




Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for odoo8-addon-profiler, version
Filename, size File type Python version Upload date Hashes
Filename, size odoo8_addon_profiler- (51.9 kB) File type Wheel Python version py2 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page