intel / PerfSpect

System performance analysis and characterization tool
BSD 3-Clause "New" or "Revised" License
339 stars 31 forks source link

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

Open raviagiri opened 6 months ago

raviagiri commented 6 months ago

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/825a5132-b58d-c0b6-b050-5a6040386ec7@linux.intel.com/ . 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