mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
feat: add pprof
This commit is contained in:
36
plugin/debug/pkg/internal/driver/html/stacks.html
Normal file
36
plugin/debug/pkg/internal/driver/html/stacks.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{.Title}}</title>
|
||||
{{template "css" .}}
|
||||
{{template "stacks_css"}}
|
||||
</head>
|
||||
<body>
|
||||
{{template "header" .}}
|
||||
<div id="current-details">
|
||||
<div id="current-details-left"></div>
|
||||
<div id="current-details-right"> </div>
|
||||
</div>
|
||||
<div id="stack-holder">
|
||||
<div id="stack-chart"></div>
|
||||
</div>
|
||||
<div id="action-menu" class="submenu">
|
||||
<span id="action-title"></span>
|
||||
<hr>
|
||||
<a title="{{.Help.list}}" id="action-source" href="./source">Show source code</a>
|
||||
<a title="{{.Help.list}}" id="action-source-tab" href="./source" target="_blank">Show source in new tab</a>
|
||||
<hr>
|
||||
<a title="{{.Help.focus}}" id="action-focus" href="?">Focus</a>
|
||||
<a title="{{.Help.ignore}}" id="action-ignore" href="?">Ignore</a>
|
||||
<a title="{{.Help.hide}}" id="action-hide" href="?">Hide</a>
|
||||
<a title="{{.Help.show_from}}" id="action-showfrom" href="?">Show from</a>
|
||||
</div>
|
||||
{{template "script" .}}
|
||||
{{template "stacks_js"}}
|
||||
<script>
|
||||
pprofUnitDefs = {{.UnitDefs}};
|
||||
stackViewer({{.Stacks}}, {{.Nodes}});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user