Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Base

Entity: ir.profile

Compute Method: _compute_speedscope

View 17.0 View 19.0
Inputs Method Outputs
  • init_stack_trace
  • sql
  • traces_async
  • traces_sync
+ params = self._parse_params(self.env.context)
for execution in self:
-             sp = Speedscope(init_stack_trace=json.loads(execution.init_stack_trace))
-             if execution.sql:
-                 sp.add('sql', json.loads(execution.sql))
-             if execution.traces_async:
-                 sp.add('frames', json.loads(execution.traces_async))
-             if execution.traces_sync:
-                 sp.add('settrace', json.loads(execution.traces_sync))
- 
-             result = json.dumps(sp.add_default().make())
-             execution.speedscope = base64.b64encode(result.encode('utf-8'))
+             execution.speedscope = base64.b64encode(execution._generate_speedscope(params))
  • speedscope

Back to entity