Re: [PATCH v5 2/3] perf sched latency: Auto-scale latency and runtime display units
From: Aaron Tomlin
Date: Sat Aug 01 2026 - 17:47:15 EST
On Fri, Jul 31, 2026 at 03:01:45PM -0700, Namhyung Kim wrote:
> On Thu, Jul 30, 2026 at 02:54:15PM -0400, Aaron Tomlin wrote:
> > Currently, 'perf sched latency' displays task runtime and delay values
> > exclusively in milliseconds (ms). This can be hard to read when
> > latencies are very small (in the microsecond or nanosecond range) or
> > unusually large (seconds).
> >
> > Introduce auto-scaling for latency and runtime display columns. Values
> > are dynamically scaled and output with the most appropriate unit:
> > nanoseconds (ns), microseconds (us), milliseconds (ms), or seconds (s).
> >
> > Additionally, rename column headers from "Runtime ms", "Avg delay ms",
> > and "Max delay ms" to "Runtime", "Avg delay", and "Max delay"
> > respectively, adjust spacing to maintain column alignment and stripe
> > redundant prefix strings from each row's format string to produce a
> > clean, tabular output.
>
> It'd be nice if you could include example output when you touched user-
> visible area. Comparing before and after would be great.
Hi Namhyung,
Acknowledged—will do.
Kind regards,
--
Aaron Tomlin