mirror of https://github.com/google/benchmark.git
add PERF_FORMAT_TOTAL_TIME_{ENABLED,RUNNING} to support multiplexing (#1814)
This commit is contained in:
parent
71f4218c1a
commit
38df9daf48
|
@ -157,7 +157,8 @@ PerfCounters PerfCounters::Create(
|
|||
attr.exclude_hv = true;
|
||||
|
||||
// Read all counters in a group in one read.
|
||||
attr.read_format = PERF_FORMAT_GROUP;
|
||||
attr.read_format = PERF_FORMAT_GROUP | PERF_FORMAT_TOTAL_TIME_ENABLED |
|
||||
PERF_FORMAT_TOTAL_TIME_RUNNING;
|
||||
|
||||
int id = -1;
|
||||
while (id < 0) {
|
||||
|
|
Loading…
Reference in New Issue