#include "timemory/components/gperftools/components.hpp"
Definition at line 50 of file components.hpp.
◆ base_type
◆ storage_type
◆ this_type
◆ value_type
◆ description()
static std::string tim::component::gperftools_cpu_profiler::description |
( |
| ) |
|
|
inlinestatic |
Definition at line 57 of file components.hpp.
59 return "Control switch for gperftools CPU profiler";
◆ get()
void tim::component::empty_base::get |
( |
| ) |
const |
|
inlineinherited |
◆ get_opaque()
template<typename... Args>
static opaque tim::component::empty_base::get_opaque |
( |
Args && |
... | ) |
|
|
inlinestaticinherited |
◆ global_finalize()
static void tim::component::gperftools_cpu_profiler::global_finalize |
( |
| ) |
|
|
inlinestatic |
Definition at line 65 of file components.hpp.
67 if(gperftools::cpu::is_running())
69 gperftools::cpu::profiler_flush();
70 gperftools::cpu::profiler_stop();
◆ label()
static std::string tim::component::gperftools_cpu_profiler::label |
( |
| ) |
|
|
inlinestatic |
◆ record()
static value_type tim::component::gperftools_cpu_profiler::record |
( |
| ) |
|
|
inlinestatic |
◆ start()
void tim::component::gperftools_cpu_profiler::start |
( |
| ) |
|
|
inline |
Definition at line 74 of file components.hpp.
76 if(!gperftools::cpu::is_running())
78 index = this_type::get_index()++;
79 const auto& _dmp_info = get_dmp_info();
80 bool _dmp_init = std::get<0>(_dmp_info);
81 int32_t _dmp_rank = std::get<1>(_dmp_info);
83 label() +
"_" + std::to_string(index),
".dat", _dmp_init, _dmp_rank);
84 auto ret = gperftools::cpu::profiler_start(fname);
87 fprintf(stderr,
"[gperftools_cpu_profiler]> Error starting %s...",
static string_t compose_output_filename(string_t _tag, string_t _ext, bool _use_suffix=use_output_suffix(), int32_t _suffix=default_process_suffix(), bool _make_dir=false, std::string _explicit={})
References tim::settings::compose_output_filename(), and label().
◆ stop()
void tim::component::gperftools_cpu_profiler::stop |
( |
| ) |
|
|
inline |
Definition at line 93 of file components.hpp.
97 gperftools::cpu::profiler_flush();
98 gperftools::cpu::profiler_stop();
◆ thread_init()
static void tim::component::gperftools_cpu_profiler::thread_init |
( |
| ) |
|
|
inlinestatic |
Definition at line 63 of file components.hpp.
63{ gperftools::cpu::register_thread(); }
The documentation for this struct was generated from the following file: