timemory 3.3.0
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 |
using | storage_type = empty_storage |
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 () |
template<typename... Args> | |
static opaque | get_opaque (Args &&...) |
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 465 of file components.hpp.
Definition at line 469 of file components.hpp.
using tim::component::thread_cpu_util::ratio_t = std::nano |
Definition at line 467 of file components.hpp.
|
inherited |
Definition at line 66 of file declaration.hpp.
Definition at line 470 of file components.hpp.
using tim::component::thread_cpu_util::value_type = std::pair<int64_t, int64_t> |
Definition at line 468 of file components.hpp.
|
inlinenoexcept |
Definition at line 520 of file components.hpp.
|
inlinenoexcept |
Definition at line 527 of file components.hpp.
|
inlinestatic |
Definition at line 473 of file components.hpp.
|
inlinenoexcept |
Definition at line 482 of file components.hpp.
References tim::component::base< thread_cpu_util, std::pair< int64_t, int64_t > >::load().
Referenced by get_display().
|
inlinenoexcept |
|
inlinestaticinherited |
Definition at line 72 of file declaration.hpp.
|
inlinenoexcept |
Definition at line 539 of file components.hpp.
|
inlinestatic |
Definition at line 472 of file components.hpp.
Definition at line 506 of file components.hpp.
Definition at line 513 of file components.hpp.
|
inlinestatic |
Definition at line 478 of file components.hpp.
References tim::component::thread_cpu_clock::record(), and tim::component::wall_clock::record().
|
inlinenoexcept |
Definition at line 489 of file components.hpp.
References get_display().
|
inlinenoexcept |
|
inlinenoexcept |