profiler
profiler · OCA/server-tools
Health
61/100
fair
-
Security25/25No findings
-
Activity6/25Last human commit 33 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 5 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.11 MB
Module directory on disk
Code analysis
2 migration notes
3 models
5 views
0 HTTP endpoints
Migration considerations
view_profile_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_profile_list— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (3 occurrences in this file) migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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…