Re: [RFC 0/4] perf sched: Introduce schedstat tool
From: Ravi Bangoria
Date: Thu May 09 2024 - 02:02:43 EST
>> USAGE
>> -----
>>
>> # perf sched schedstat record
>> # perf sched schedstat report
>
> Hmm. I think we can remove the duplication in 'sched'. :)
You mean `perf sched stat record/report` ?
> Given you are thinking of taskstat, how about making it
> 'cpustat' instead?
Sure. How about:
# perf sched stat --cpu --task record
# perf sched stat report
> Also I think it'd be easier if you also provide 'live' mode so that
> users can skip record + report steps and run the workload
> directly like uftrace does. :)
>
> Something like this
>
> # perf sched cpustat myworkload
> (result here ...)
Sure.
Thanks for the feedback,
Ravi