guanaqo 1.0.0-alpha.24
Utilities for scientific software
Loading...
Searching...
No Matches
guanaqo::pcm Namespace Reference

Namespaces

namespace  detail

Classes

struct  ThreadPerfCounters
struct  ScopedCounters
 Pins the thread to the current CPU and records a snapshot of performance events. More...

Functions

std::unique_ptr< detail::ScopedCountersstart_counters ()
 May return null if PCM is not available.
void disable_counters ()
 Disables performance counters globally. Blocks until all active counters have stopped.
void enable_counters ()
 Enables performance counters globally.
template<class F>
 ScopedCounters (F &&) -> ScopedCounters< F >
template<class F>
 ScopedCounters (F &) -> ScopedCounters< F & >
ThreadPerfCountersget_thread_perf_counters ()
std::atomic_bool & get_counters_enabled_flag ()

Function Documentation

◆ get_thread_perf_counters()

ThreadPerfCounters & guanaqo::pcm::get_thread_perf_counters ( )

Definition at line 22 of file counters.cpp.

◆ get_counters_enabled_flag()

std::atomic_bool & guanaqo::pcm::get_counters_enabled_flag ( )

Definition at line 384 of file counters.cpp.

Here is the caller graph for this function: