#include "timemory/components/gperftools/components.hpp"
Definition at line 124 of file components.hpp.
◆ base_type
◆ storage_type
◆ this_type
◆ value_type
◆ description()
static std::string tim::component::gperftools_heap_profiler::description |
( |
| ) |
|
|
inlinestatic |
Definition at line 131 of file components.hpp.
133 return "Control switch for the gperftools heap 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_heap_profiler::global_finalize |
( |
| ) |
|
|
inlinestatic |
Definition at line 137 of file components.hpp.
139 if(gperftools::heap::is_running())
141 gperftools::heap::profiler_flush(
"global_finalize");
142 gperftools::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 146 of file components.hpp.
148 if(!gperftools::heap::is_running())
150 index = this_type::get_index()++;
152 auto ret = gperftools::heap::profiler_start(fname);
155 fprintf(stderr,
"[gperftools_heap_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(), 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: