From 6ea8920dac3b7e3868707a84e58a5d7e10ebbbf3 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 24 Feb 2026 21:19:09 +0200 Subject: flamegraph: remove external tool path and document native generation --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index dce3849..e5c41bb 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Important details: - `durationToPrevNs` is tracked per `tid` (thread), not globally across all threads. - The first observed syscall pair for a thread has `durationToPrevNs = 0` because there is no prior exit timestamp. - `durationToPrevNs` is attributed to the current syscall pair (the one whose `enter` closes the gap). -- There is no separate "idle" pseudo-event bucket; use the `durationToPrev` count field when collapsed/aggregated output should emphasize inter-syscall time. +- There is no separate "idle" pseudo-event bucket; use the `durationToPrev` count field when aggregated flamegraph output should emphasize inter-syscall time. ## Fedora @@ -57,10 +57,16 @@ make sudo cp -v ./libelf/libelf.a /usr/lib64/ ``` -## Inferno Flamegraphs +## Native Flamegraph Generation -We are using Inferno Flamegraphs: https://github.com/jonhoo/inferno +Flamegraphs are generated natively by `ior` from `.ior.zst` data files; no external flamegraph tool is required. ```sh -cargo install inferno +./ior -ior=trace.ior.zst -fields=pid,path,tracepoint -count=count +``` + +This generates an SVG and starts an embedded web server. The terminal prints a URL like: + +```text +Flamegraph available at http://HOSTNAME:PORT/abs/path/to.svg ``` -- cgit v1.2.3