#include "timemory/components/gperftools/components.hpp"
Definition at line 51 of file components.hpp.
◆ base_type
◆ this_type
◆ value_type
◆ description()
static std::string tim::component::gperftools_cpu_profiler::description |
( |
| ) |
|
|
inlinestatic |
Definition at line 58 of file components.hpp.
60 return "Control switch for gperftools CPU profiler";
◆ global_finalize()
static void tim::component::gperftools_cpu_profiler::global_finalize |
( |
| ) |
|
|
inlinestatic |
Definition at line 66 of file components.hpp.
68 if(gperf::cpu::is_running())
70 gperf::cpu::profiler_flush();
71 gperf::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 75 of file components.hpp.
77 if(!gperf::cpu::is_running())
79 index = this_type::get_index()++;
80 const auto& _dmp_info = get_dmp_info();
81 bool _dmp_init = std::get<0>(_dmp_info);
82 int32_t _dmp_rank = std::get<1>(_dmp_info);
84 label() +
"_" + std::to_string(index),
".dat", _dmp_init, _dmp_rank);
85 auto ret = gperf::cpu::profiler_start(fname);
88 fprintf(stderr,
"[gperftools_cpu_profiler]> Error starting %s...",
static string_t compose_output_filename(const string_t &_tag, string_t _ext, bool _mpi_init=false, int32_t _mpi_rank=-1, bool fake=false, std::string _explicit="")
References tim::settings::compose_output_filename(), and label().
◆ stop()
void tim::component::gperftools_cpu_profiler::stop |
( |
| ) |
|
|
inline |
Definition at line 94 of file components.hpp.
98 gperf::cpu::profiler_flush();
99 gperf::cpu::profiler_stop();
◆ thread_init()
static void tim::component::gperftools_cpu_profiler::thread_init |
( |
| ) |
|
|
inlinestatic |
Definition at line 64 of file components.hpp.
64 { gperf::cpu::register_thread(); }
The documentation for this struct was generated from the following file: