rust-perfcnt icon indicating copy to clipboard operation
rust-perfcnt copied to clipboard

Enable grouped events

Open abrown opened this issue 4 years ago • 1 comments

@gz, thanks for the good work here! I was hoping to use perfcnt to measure grouped events but I see that the ReadRecord in src/linux/mod.rs does not seem to support this. The ReadRecord in src/linux/perf_format.rs does seem to have the support but it is commented out in the EventData enum. What did you find that prevented using the more flexible record format?

abrown avatar Dec 07 '20 19:12 abrown

Oh, the other thing to make this work would be to expose the group leader's fd in some way in PerfCounter, perhaps a PerfCounter::fd() -> Result<isize, ...> or the like so that we can then use in PerfCounterBuilderLinux::set_group? @iximeow describes this in more detail here.

abrown avatar Dec 07 '20 20:12 abrown