|
TECA
The Toolkit for Extreme Climate Analysis
|
MemoryProfiler - A sampling memory use profiler. More...
#include <teca_memory_profiler.h>
Public Member Functions | |
| teca_memory_profiler (const teca_memory_profiler &)=delete | |
| void | operator= (const teca_memory_profiler &)=delete |
| int | initialize () |
| int | finalize () |
| void | set_interval (double interval) |
| double | get_interval () const |
| void | set_communicator (MPI_Comm comm) |
| void | set_filename (const std::string &filename) |
| const char * | get_filename () const |
Friends | |
| void * | profile (void *argp) |
MemoryProfiler - A sampling memory use profiler.
The class samples process memory usage at the specified interval given in seconds. For each sample the time is acquired. Calling Initialize starts profiling, and Finalize ends it. During Finalization the buffers are written using MPI-I/O to the file name provided.