From 5f23af510bd9031c515f2a3cc495bd996c795e69 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 27 Feb 2026 18:52:23 +0200 Subject: flamegraph: add live baseline reset hotkey --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index d9f4dce..19282f7 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,28 @@ This generates an SVG and starts an embedded web server. The terminal prints a U Flamegraph available at http://HOSTNAME:PORT/abs/path/to.svg ``` +## Live Flamegraph Mode + +Run live mode (requires root privileges): + +```sh +sudo ./ior -live -pid -live-interval 200ms -duration 300 +``` + +The terminal prints a URL like: + +```text +Live flamegraph available at http://HOSTNAME:PORT/ +``` + +Live controls: + +- `Space`: pause/resume incoming updates. +- `/`: search frame labels. +- `Escape`: reset zoom and search highlighting. +- `r`: reset baseline (clears all live aggregated stats on the server and restarts from zero). +- `Reset Baseline` button: same behavior as `r`. + ## TUI Hotkeys The TUI has two key scopes: -- cgit v1.2.3