Add support for 'start/pause/resume' functionality in perf
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
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?
Found a workaround for perfspect metrics:
perfspect metrics &
killall -s SIGINT perf
SIGINT to perfspect will stop metric collection and produce output files. If not, it's a bug.
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.
It is working with Ctrl-C in the terminal, but not with 'kill -SIGINT
New issue opened: https://github.com/intel/PerfSpect/issues/96