The profiling tools can be useful to profile a test of some execution point but this is not convenient to identify a problem on a running instance. With this commit, an option available in the debug menu allows to add a flag on the user sessions to enable profiling of all requests. Each request will be saved in a different 'ir.profile' entry, but will be grouped under the same session. The profiling can be activated on all sessions, even for a public user, but only if profiling is enabled on the database globally. This commits also adds a speedscope view to visualize saved results in the web client. closes odoo/odoo#66590 Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
27 lines
1.1 KiB
XML
27 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="view_speedscope_index">
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8"/>
|
|
<title>Speedscope for odoo</title>
|
|
<script t-if="profile">window.location.hash="#profileURL=<t t-esc="url_root"/>web/content/ir.profile/<t t-esc="profile.id"/>/speedscope"</script>
|
|
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet"/>
|
|
<link rel="stylesheet"
|
|
t-attf-href="{{cdn}}reset.8c46b7a1.css"
|
|
crossorigin="anonymous"
|
|
integrity="sha256-mrA/937EwtEDE+8XZ/62tNz2T/BnCLth8QmWsWKpvD8="
|
|
/>
|
|
</head>
|
|
<body>
|
|
<script
|
|
t-attf-src="{{cdn}}speedscope.026f36b0.js"
|
|
crossorigin="anonymous"
|
|
integrity="sha256-CvDqAOMjq0Sv/D59O5JSbzzXoClZ3rptt6ts8D/6CWw="
|
|
></script>
|
|
</body>
|
|
</html>
|
|
</template>
|
|
</odoo>
|