Skip to main content
License: AGPL-3

Profiler

Integration of cProfile and PgBadger.

Installation

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)

logging_collector=on
log_destination='stderr'
log_directory='pg_log'
log_filename='postgresql.log'
log_rotation_age=0
log_checkpoints=on
log_hostname=on
log_line_prefix='%t [%p]: [%l-1] db=%d,user=%u '

Configuration

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.

Usage

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

Credits

Contributors

Maintainer

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 https://odoo-community.org.

Metadata

Release files for odoo8-addon-profiler 8.0.1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo8-addon-profiler 8.0.1.0.0
File Interpreter ABI Platform
odoo8_addon_profiler-8.0.1.0.0-py2-none-any.whl Python 2 none any Details

Release files / odoo8_addon_profiler-8.0.1.0.0-py2-none-any.whl

Download URL odoo8_addon_profiler-8.0.1.0.0-py2-none-any.whl
Size 51.9 kB
Tags Python 2
SHA-256 checksum
How to use checksums
3ba1eda2951bdcbd460e0e72e9468a0a035308fe8e39406107f2e6d79b830463
BLAKE2b-256 checksum
How to use checksums
148b3d92b0facffee7aa1bc7a25bd50f0ff70b1a4941783128fdc0c8b8400816
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page