| 440 | } |
| 441 | |
| 442 | void PerfEventsCounters::initializeProfileEvents(const std::string & events_list) |
| 443 | { |
| 444 | if (!processThreadLocalChanges(events_list)) |
| 445 | return; |
| 446 | |
| 447 | for (int fd : thread_events_descriptors_holder.descriptors) |
| 448 | { |
| 449 | if (fd == -1) |
| 450 | continue; |
| 451 | |
| 452 | // We don't reset the event, because the time_running and time_enabled |
| 453 | // can't be reset anyway and we have to calculate deltas. |
| 454 | enablePerfEvent(fd); |
| 455 | } |
| 456 | } |
| 457 | |
| 458 | void PerfEventsCounters::finalizeProfileEvents(ProfileEvents::Counters & profile_events) |
| 459 | { |
no test coverage detected