|
guanaqo
main
Utilities for scientific software
|
CPU performance counters (PCM) integration and scoped collectors.
Files | |
| file | counters.hpp |
| Performance counter snapshots and scoped collectors. | |
Classes | |
| struct | guanaqo::pcm::ThreadPerfCounters |
| struct | guanaqo::pcm::ScopedCounters< F > |
| Pins the thread to the current CPU and records a snapshot of performance events. More... | |
Functions | |
| std::unique_ptr< detail::ScopedCounters > | guanaqo::pcm::start_counters () |
| May return null if PCM is not available. | |
| void | guanaqo::pcm::disable_counters () |
| Disables performance counters globally. Blocks until all active counters have stopped. | |
| void | guanaqo::pcm::enable_counters () |
| Enables performance counters globally. | |
| template<class F> | |
| guanaqo::pcm::ScopedCounters (F &&) -> ScopedCounters< F > | |
| template<class F> | |
| guanaqo::pcm::ScopedCounters (F &) -> ScopedCounters< F & > | |
| struct guanaqo::pcm::ThreadPerfCounters |
| std::unique_ptr< detail::ScopedCounters > guanaqo::pcm::start_counters | ( | ) |
#include <guanaqo/pcm/counters.hpp>
May return null if PCM is not available.
Definition at line 398 of file counters.cpp.
| void guanaqo::pcm::disable_counters | ( | ) |
#include <guanaqo/pcm/counters.hpp>
Disables performance counters globally. Blocks until all active counters have stopped.
Definition at line 389 of file counters.cpp.
| void guanaqo::pcm::enable_counters | ( | ) |
#include <guanaqo/pcm/counters.hpp>
Enables performance counters globally.
Definition at line 394 of file counters.cpp.
| guanaqo::pcm::ScopedCounters | ( | F && | ) | -> ScopedCounters< F > |
#include <guanaqo/pcm/counters.hpp>
| guanaqo::pcm::ScopedCounters | ( | F & | ) | -> ScopedCounters< F & > |
#include <guanaqo/pcm/counters.hpp>