summaryrefslogtreecommitdiff
path: root/internal/flamegraph/livehtml.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-06 14:33:52 +0200
committerPaul Buetow <paul@buetow.org>2026-03-06 14:33:52 +0200
commit3e08a3d199fdf603b7c0a4002ca9822b6ecf2575 (patch)
tree7e096a07cc515ffc18f0eca308819e8162df1d60 /internal/flamegraph/livehtml.go
parentaa4f638206b9b79de267f9a1daab7ec6698b241d (diff)
flamegraph: make esc undo one zoom level and aggregate syscalls by default
Diffstat (limited to 'internal/flamegraph/livehtml.go')
-rw-r--r--internal/flamegraph/livehtml.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/flamegraph/livehtml.go b/internal/flamegraph/livehtml.go
index 90a6d3d..71b955e 100644
--- a/internal/flamegraph/livehtml.go
+++ b/internal/flamegraph/livehtml.go
@@ -116,7 +116,7 @@ const liveHTML = `<!doctype html>
<button id="btn-undo-zoom" type="button">Undo Zoom</button>
<button id="btn-reset-zoom" type="button">Reset Zoom</button>
<button id="btn-reset-baseline" type="button">Reset Baseline</button>
- <button id="btn-toggle-order" class="order-toggle" type="button">Order: comm > path > tracepoint</button>
+ <button id="btn-toggle-order" class="order-toggle" type="button">Order: comm > tracepoint > path</button>
<span id="status">LIVE</span>
</div>
@@ -146,10 +146,11 @@ const liveHTML = `<!doctype html>
resetBaselineBtn: document.getElementById('btn-reset-baseline'),
toggleOrderBtn: document.getElementById('btn-toggle-order'),
orderPresets: [
- 'comm,path,tracepoint',
+ 'comm,tracepoint,path',
'path,tracepoint,comm',
'tracepoint,comm,path',
- 'pid,path,tracepoint'
+ 'pid,tracepoint,path',
+ 'comm,path,tracepoint'
],
orderIndex: 0,
cfg: {