TIP: You can type at any time to perform a new search.
profiler
profiler · OCA/server-tools
- Repository
- OCA/server-tools · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Tests
- Folder size
- 0.11 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/server-tools
- Last tracking update
- 2026-08-07 07:47:40
- Authors
- Vauxoo, Odoo Community Association (OCA), Therp BV
- Maintainers
- Vauxoo, Odoo Community Association (OCA), Therp BV
- Committers
- Weblate, OCA-git-bot, Tom Blauwendraat, oca-ci
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Code Analysis ⓘ
Views touched (5)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_profile_form |
view profile form | profiler.profile | form | New |
view_profile_list |
view profile list | profiler.profile | tree | New |
view_profiling_lines |
view profiling_lines | profiler.profile.python.line | tree | New |
view_profiling_lines_search |
view.profiling.lines.search | profiler.profile.python.line | search | New |
view_request_lines |
view request_lines | profiler.profile.request.line | tree | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (18)
-
attachment_countIntegercompute='_compute_attachment_count' -
date_finishedCharreadonly=True -
date_startedCharreadonly=True -
descriptionTextreadonly=True -
enable_postgresqlBooleandefault=Falsehelp='It requires postgresql server logs seudo-enabled' -
enable_pythonBooleandefault=True -
nameCharrequired=True -
pg_log_pathChardefault=_find_loggers_pathhelp='Getting the path to the logger' -
pg_remoteChar -
pg_stats_most_frequent_htmlHtmlreadonly=True args: 'PostgreSQL Stats - Most Frequent' -
pg_stats_slowest_htmlHtmlreadonly=True args: 'PostgreSQL Stats - Slowest' -
pg_stats_time_consuming_htmlHtmlreadonly=True args: 'PostgreSQL Stats - Time Consuming' -
py_request_linesOne2many → profiler.profile.request.lineargs: 'profiler.profile.request.line', 'profile_id', 'HTTP requests' -
py_stats_linesOne2many → profiler.profile.python.lineargs: 'profiler.profile.python.line', 'profile_id', 'PY Stats Lines' -
python_methodSelectiondefault='full'required=Trueselection=_SELECTION_PYTHON_METHOD -
sessionChar -
stateSelectiondefault='disabled'readonly=Truerequired=True args: [('enabled', 'Enabled'), ('disabled', 'Disabled')] -
use_py_indexBooleandefault=Falsehelp='Index human-readable cProfile attachment.\nTo access this report, you must open the cprofile attachment view using debug mode.\nWarning: Uses more resources.'name='Get cProfiling report'
-
action_view_attachment(self) -
clear(self, reset_date=True) -
create_request_line(self)Create a record corresponding to the current HTTP request and return it. If no HTTP request is available, return None. -
disable(self) -
dump_postgresql_logs(self, indexed=None) -
dump_stats(self)This is used in 'full' mode only -
enable(self) -
get_psql_params(cr, params)@staticmethod -
get_stats_string(self, cprofile_path) -
now_utc(self)@api.model -
onchange_enable_postgresql(self)@api.onchange('enable_postgresql') -
profiling()@staticmethod@contextmanager -
set_pgoptions_enabled(self)@api.modelVerify if postgresql has configured the parameters for logging -
unlink(self)
New fields (8)
-
cprof_ctpercallFloatargs: 'CT per call' -
cprof_cumtimeFloatargs: 'Cumulative time' -
cprof_fnameCharargs: 'Filename:lineno(method)' -
cprof_ncallsFloatargs: 'Calls' -
cprof_nrcallsFloatargs: 'Recursive Calls' -
cprof_tottimeFloatargs: 'Total time' -
cprof_ttpercallFloatargs: 'Time per call' -
profile_idMany2one → profiler.profileondelete='cascade'required=True args: 'profiler.profile'
-
unlink(self)
New fields (8)
-
attachment_idReferencecompute='_compute_attachment_id'selection=[('ir.attachment', 'ir.attachment')]string='pStats file' -
display_nameCharcompute='_compute_display_name' args: 'Name' -
nameCharargs: 'Path' -
profile_idMany2one → profiler.profileondelete='cascade'required=True args: 'profiler.profile' -
root_urlCharargs: 'Root URL' -
total_timeFloatargs: 'Time in ms' -
user_contextCharargs: 'Context' -
user_idMany2one → res.usersstring='User' args: 'res.users'
-
dump_stats(self, profile)@api.modelThis is called in 'request' mode only -
dump_stats_db(self, cprofile_fname, cprofile_path)This is called in 'request' mode only
Loading…
Loading…
Loading…
Loading…