diff options
| author | 2026-10-06 16:57:27 +0200 | |
|---|---|---|
| committer | 2026-10-07 11:40:29 +0200 | |
| commit | 44ce6270eb89deadac06bd98cb3266c864c07d7e (patch) | |
| tree | 3fe6c164563fbbe44ebcfd1023fbe1aa82210607 /scripts/Makefile.thinlto | |
| parent | perf config: Serialize config file access with a mutex (diff) | |
perf report: Add --progress option
Processing a large session with stdio output gives no feedback about
which phase perf is in or how far along it is: ui_progress updates are
only shown by the TUI. Add --progress, installing a stdio backend
(ui/stdio/progress.c) that prints the phase title, percentage and
counts:
Processing events... [ 42.3%] 317M / 746M
Phases can be nested, so the backend tracks the ones started to
complete the right one on ui_progress__finish(); that requires
init()/finish() pairs, fixed in ordered-events.c and the pipe and
directory event processing.
With a pager both stdout and stderr lead to it, so isatty(stderr)
turns false and the updates end up printed one per line in the
pager's output: use /dev/tty in that case, so that the updates keep
updating in place, untouched by the pager.
Assisted-by: LLM
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
