MCPcopy Create free account
hub / github.com/ByConity/ByConity / initializeProfileEvents

Method initializeProfileEvents

src/Common/ThreadProfileEvents.cpp:442–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442void 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
458void PerfEventsCounters::finalizeProfileEvents(ProfileEvents::Counters & profile_events)
459{

Callers 1

Calls 1

enablePerfEventFunction · 0.85

Tested by

no test coverage detected