#include "timemory/components/gperftools/components.hpp"
Definition at line 125 of file components.hpp.
◆ base_type
◆ this_type
◆ value_type
◆ description()
static std::string tim::component::gperftools_heap_profiler::description |
( |
| ) |
|
|
inlinestatic |
Definition at line 132 of file components.hpp.
134 return "Control switch for the gperftools heap profiler";
◆ global_finalize()
static void tim::component::gperftools_heap_profiler::global_finalize |
( |
| ) |
|
|
inlinestatic |
Definition at line 138 of file components.hpp.
140 if(gperf::heap::is_running())
142 gperf::heap::profiler_flush(
"global_finalize");
143 gperf::heap::profiler_stop();
◆ label()
static std::string tim::component::gperftools_heap_profiler::label |
( |
| ) |
|
|
inlinestatic |
◆ record()
static value_type tim::component::gperftools_heap_profiler::record |
( |
| ) |
|
|
inlinestatic |
◆ set_prefix()
void tim::component::gperftools_heap_profiler::set_prefix |
( |
const std::string & |
_prefix | ) |
|
|
inline |
◆ start()
void tim::component::gperftools_heap_profiler::start |
( |
| ) |
|
|
inline |
Definition at line 147 of file components.hpp.
149 if(!gperf::heap::is_running())
151 index = this_type::get_index()++;
153 auto ret = gperf::heap::profiler_start(fname);
156 fprintf(stderr,
"[gperftools_heap_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(), index, label(), and prefix.
◆ stop()
void tim::component::gperftools_heap_profiler::stop |
( |
| ) |
|
|
inline |
◆ index
int32_t tim::component::gperftools_heap_profiler::index = -1 |
|
protected |
◆ prefix
std::string tim::component::gperftools_heap_profiler::prefix |
|
protected |
The documentation for this struct was generated from the following file: