Re: [PATCHSET 0/6] perf sched timehist: Introduce --idle-hist option (v2)

From: Namhyung Kim
Date: Tue Dec 13 2016 - 03:06:21 EST


On Mon, Dec 12, 2016 at 10:37:30AM -0700, David Ahern wrote:
> On 12/12/16 10:26 AM, Namhyung Kim wrote:
> > Do you mean adding an elapsed time so that it can see the cpu utilization (or
> > something similar)? Then we need to expose the elapsed time during record or
> > maybe just use time difference between first and last sample?
>
> I was thinking tstart = time of first sample analyzed, tend = time of last
> sample analyzed, dt = tend - tstart.
>
> If the analysis window (dt) is 5 seconds and each cpu is idle for 0.1 seconds
> of that 5 second window then the system is under high load.

Hmm... something like this?