likwid

perf stat for part of program

↘锁芯ラ 提交于 2019-11-29 04:32:02
Is it possible with perf to collect hardware counter statistics for only part of a program's execution? If so, how? likwid offers the feature of being able to define named regions, but it would be great if this was possible on systems with just perf installed. Some previous questions have returned relevant answers, but there are still some shortcomings: Using probe I get the same error and I'm using a slightly newer kernel (3.13). Are these fixes available in a newer version? Using perf_event_open I would like to maintain the flexibility to define events on the command line. I also took a peek

perf stat for part of program

给你一囗甜甜゛ 提交于 2019-11-27 22:24:21
问题 Is it possible with perf to collect hardware counter statistics for only part of a program's execution? If so, how? likwid offers the feature of being able to define named regions, but it would be great if this was possible on systems with just perf installed. Some previous questions have returned relevant answers, but there are still some shortcomings: Using probe I get the same error and I'm using a slightly newer kernel (3.13). Are these fixes available in a newer version? Using perf_event