timemory
3.2.1
Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.
|
this computes the CPU utilization percentage for ONLY the calling thread (excludes sibling and child threads). Only relevant as a time when a different is computed Do not use a single CPU time as an amount of time; it doesn't work that way. More...
#include "timemory/components/timing/components.hpp"
Public Types | |
using | ratio_t = std::nano |
using | value_type = std::pair< int64_t, int64_t > |
using | base_type = base< thread_cpu_util, value_type > |
using | this_type = thread_cpu_util |
Public Member Functions | |
double | get () const noexcept |
double | serialization () const noexcept |
double | get_display () const noexcept |
void | start () noexcept |
void | stop () noexcept |
this_type & | operator+= (const this_type &rhs) noexcept |
this_type & | operator-= (const this_type &rhs) noexcept |
bool | assemble (const wall_clock *wc, const thread_cpu_clock *cc) noexcept |
bool | derive (const wall_clock *wc, const thread_cpu_clock *cc) noexcept |
bool | is_derived () const noexcept |
Static Public Member Functions | |
static std::string | label () |
static std::string | description () |
static value_type | record () |
this computes the CPU utilization percentage for ONLY the calling thread (excludes sibling and child threads). Only relevant as a time when a different is computed Do not use a single CPU time as an amount of time; it doesn't work that way.
Definition at line 480 of file components.hpp.
Definition at line 484 of file components.hpp.
using tim::component::thread_cpu_util::ratio_t = std::nano |
Definition at line 482 of file components.hpp.
Definition at line 485 of file components.hpp.
using tim::component::thread_cpu_util::value_type = std::pair<int64_t, int64_t> |
Definition at line 483 of file components.hpp.
|
inlinenoexcept |
Definition at line 535 of file components.hpp.
|
inlinenoexcept |
Definition at line 542 of file components.hpp.
|
inlinestatic |
Definition at line 488 of file components.hpp.
|
inlinenoexcept |
Definition at line 497 of file components.hpp.
References tim::component::base< cpu_util, std::pair< int64_t, int64_t > >::load().
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 554 of file components.hpp.
|
inlinestatic |
Definition at line 487 of file components.hpp.
Definition at line 521 of file components.hpp.
Definition at line 528 of file components.hpp.
|
inlinestatic |
Definition at line 493 of file components.hpp.
References tim::component::thread_cpu_clock::record(), and tim::component::wall_clock::record().
|
inlinenoexcept |
Definition at line 504 of file components.hpp.
References tim::component::cpu_util::get_display().
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 511 of file components.hpp.
References tim::component::cpu_util::record().