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 component stores the timestamp of when a bundle was started and is specialized such that the "timeline_storage" type-trait is true. This means that every entry in the call-graph for this output will be unique (look in the timestamp.txt output file) More...
#include "timemory/components/timestamp/timestamp.hpp"
Public Types | |
using | value_type = timestamp_entry_t |
using | base_type = base< timestamp, value_type > |
using | clock_type = std::chrono::system_clock |
using | time_point_type = typename clock_type::time_point |
using | duration_type = std::chrono::duration< clock_type::rep, std::nano > |
using | storage_type = empty_storage |
Public Member Functions | |
void | sample () |
void | start () |
value_type | get () const |
std::string | get_display () const |
template<typename ArchiveT > | |
void | load (ArchiveT &ar, const unsigned) |
template<typename ArchiveT > | |
void | save (ArchiveT &ar, const unsigned) const |
timestamp & | operator+= (const timestamp &) |
timestamp & | operator/= (const timestamp &) |
timestamp & | operator/= (int64_t) |
Static Public Member Functions | |
static std::string | label () |
static std::string | description () |
static value_type | record () |
static value_type | get_reference_ts () |
static std::string | as_string (const time_point_type &_tp) |
static int64_t | count () |
template<typename ArchiveT > | |
static void | extra_serialization (ArchiveT &) |
template<typename... Args> | |
static opaque | get_opaque (Args &&...) |
Friends | |
std::ostream & | operator<< (std::ostream &_os, const timestamp &_ts) |
this component stores the timestamp of when a bundle was started and is specialized such that the "timeline_storage" type-trait is true. This means that every entry in the call-graph for this output will be unique (look in the timestamp.txt output file)
Definition at line 49 of file timestamp.hpp.
Definition at line 52 of file timestamp.hpp.
using tim::component::timestamp::clock_type = std::chrono::system_clock |
Definition at line 53 of file timestamp.hpp.
using tim::component::timestamp::duration_type = std::chrono::duration<clock_type::rep, std::nano> |
Definition at line 55 of file timestamp.hpp.
|
inherited |
Definition at line 66 of file declaration.hpp.
using tim::component::timestamp::time_point_type = typename clock_type::time_point |
Definition at line 54 of file timestamp.hpp.
Definition at line 51 of file timestamp.hpp.
|
static |
Definition at line 64 of file timestamp.cpp.
Referenced by tim::data::base::stream_entry::construct(), and get_display().
|
static |
|
static |
Definition at line 50 of file timestamp.cpp.
|
static |
Definition at line 108 of file timestamp.hpp.
References get_reference_ts().
timestamp::value_type tim::component::timestamp::get | ( | ) | const |
Definition at line 100 of file timestamp.cpp.
std::string tim::component::timestamp::get_display | ( | ) | const |
Definition at line 107 of file timestamp.cpp.
References as_string().
|
inlinestaticinherited |
Definition at line 72 of file declaration.hpp.
|
static |
Definition at line 131 of file timestamp.cpp.
References record().
Referenced by extra_serialization(), sample(), and start().
|
static |
Definition at line 43 of file timestamp.cpp.
void tim::component::timestamp::load | ( | ArchiveT & | ar, |
const unsigned | |||
) |
Definition at line 91 of file timestamp.hpp.
Definition at line 114 of file timestamp.cpp.
Definition at line 121 of file timestamp.cpp.
timestamp & tim::component::timestamp::operator/= | ( | int64_t | ) |
Definition at line 127 of file timestamp.cpp.
|
static |
Definition at line 57 of file timestamp.cpp.
Referenced by count(), get_reference_ts(), sample(), and start().
void tim::component::timestamp::sample | ( | ) |
Definition at line 84 of file timestamp.cpp.
References get_reference_ts(), and record().
void tim::component::timestamp::save | ( | ArchiveT & | ar, |
const unsigned | |||
) | const |
Definition at line 100 of file timestamp.hpp.
void tim::component::timestamp::start | ( | ) |
Definition at line 92 of file timestamp.cpp.
References get_reference_ts(), and record().
|
friend |
Definition at line 82 of file timestamp.hpp.