PerfSpect icon indicating copy to clipboard operation
PerfSpect copied to clipboard

Add support for 'start/pause/resume' functionality in perf

Open raviagiri opened this issue 1 year ago • 5 comments

What is the problem this feature would solve?

Measuring performance metrics for a) specific application 'phases' or b) during execution of specific code segments or c) during specific 'events' requires the ability to specify start/pause/resume functionality.

What is the feature you are proposing to solve the problem?

add support for start/pause/resume functionality that's in perf since kernel v5.9 and later: https://lore.kernel.org/lkml/[email protected]/ . Specifically, support the --delay, --ctl-fd and --ctl-fd-ack options to delay and to listen for pause and resume commands respectively and add support for sending pause and resume. (I may follow-up with a PR for this)

What alternatives have you considered?

No response

raviagiri avatar Apr 30 '24 17:04 raviagiri

echo that. Currently, perfspect telemetry can only run for a duration, or there will be no output if interrupted (control-c). How to force stop perfspect telemetry and generate the output collected so far?

xwu2intel avatar Nov 15 '24 21:11 xwu2intel

Found a workaround for perfspect metrics:

perfspect metrics &
killall -s SIGINT perf

xwu2intel avatar Nov 16 '24 03:11 xwu2intel

SIGINT to perfspect will stop metric collection and produce output files. If not, it's a bug.

harp-intel avatar Nov 18 '24 21:11 harp-intel

SIGINT to perfspect will stop metric collection and produce output files. If not, it's a bug.

SIGINT to perfspect will stop the metric collection but will not produce any output files.

xwu2intel avatar Nov 18 '24 22:11 xwu2intel

It is working with Ctrl-C in the terminal, but not with 'kill -SIGINT '.

New issue opened: https://github.com/intel/PerfSpect/issues/96

harp-intel avatar Nov 19 '24 14:11 harp-intel