Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 6 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 2 models 2 views 0 HTTP endpoints

Description

This addon adds profiling controls to queue job functions and wraps queue job execution in an Odoo profiler session when enabled.

When profiling is enabled for a job function and the executing user matches one of the configured profiling users (or no users are set), the queue job runner records SQL and async stack traces via odoo.tools.profiler.Profiler and saves the results into ir_profile.

Dependencies

Odoo dependencies
OCA/queue:
odoo/odoo:
- web
- bus
Python dependencies
requests
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 2

XML IDNameModelTypeStatus
queue_job_form_profiler queue.job.form.profiler queue.job form Inherits queue_job.view_queue_job_form
queue_job_function_form_profiler queue.job.function.form.profiler queue.job.function form Inherits queue_job.view_queue_job_function_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (1)
  • job_is_profiled Boolean
    compute='_compute_job_is_profiled' compute_sudo=True default=False help='Whether this job has been profiled or not.' string='Profiled'
Public methods (1)
  • action_view_profile(self)

New fields (3)
  • profiling_enabled Boolean
    help='Indicates whether profiling is enabled for this job function.' string='Profiling enabled'
  • profiling_until Datetime
    help='The date and time until which profiling is enabled for this job function.' string='Profiling until'
  • profiling_user_ids Many2many → res.users
    help='The users allowed to perform profiling for this job function.' string='Profiling users' args: 'res.users'
Public methods (1)
  • is_profiling_enabled(self)