All of lore.kernel.org
 help / color / mirror / Atom feed
* Toggle perf stat on/off periodically and keep each sample
@ 2024-10-16  1:28 Fengkai Sun
  2024-10-17 22:26 ` Namhyung Kim
  0 siblings, 1 reply; 4+ messages in thread
From: Fengkai Sun @ 2024-10-16  1:28 UTC (permalink / raw)
  To: linux-perf-users

Hi all,

I've been using control fd and delay=-1 to toggle perf stat on until a
certain point of the program, and it works like a charm.

Now, I want to do this periodically and keep all the results.
Specifically, I have a performance-critical network program that reads
the packets in batches and processes them, and I want to record the
hardware counters on each batch, for future comparison.

Intuitively, this requires two functionalities I have no idea how to achieve:

1. The ability to zero out all recorded counters when the current
sample is finished and
2. The ability to keep individual samples, instead of outputting a
single overall result when the process finishes.

I'm wondering if this can be achieved under current version of perf,
and if such recording makes sense (e.g., does not incur too much
overhead). Thank you!


Thanks,
Fengkai

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-18 16:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-16  1:28 Toggle perf stat on/off periodically and keep each sample Fengkai Sun
2024-10-17 22:26 ` Namhyung Kim
2024-10-18 14:19   ` Fengkai Sun
2024-10-18 16:08     ` Ian Rogers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.