![]() |
ATLAS Offline Software
|
the code actually computing the memory usage is kindly stolen from: atlasoff:: Simulation/G4Sim/SimHelpers/SimHelpers/MemorySnooper.h More...
#include <MemoryMonitoringTool.h>
Public Member Functions | |
| MemoryMonitoringTool (const std::string &t, const std::string &n, const IInterface *p) | |
| Constructor with parameters. | |
| ~MemoryMonitoringTool () | |
| Destructor. | |
| StatusCode | initialize () |
| Athena algtool Hooks. | |
| StatusCode | finalize () |
| Athena algtool Hook. | |
| virtual double | getCurrent () const |
| return current memory usage in kBytes | |
| virtual void | dumpCurrent (const char *infoStr, bool considerInSummary) |
| dump current memory monitoring information | |
| virtual void | recordCurrent (const char *infoStr) |
| store the current memory monitoring information internally | |
| virtual void | dumpSummary (const char *dumpCallDescr) const |
| dump all internally stored memory monitoring information | |
Private Member Functions | |
| int | computeCurMemoryUsage () const |
| consolidate /proc to determine current memory usage | |
Private Attributes | |
| unsigned int | m_numCalls |
| needed to compute per event stats | |
| unsigned int | m_prevCallMemUsage |
| double | m_accumulatedCallMemory |
| double | m_accumulatedIncrMemory |
| InfoUsagePairVector | m_table |
| storing all (infoStr,memUsage) pairs created in recordCurrent(..) calls | |
the code actually computing the memory usage is kindly stolen from: atlasoff:: Simulation/G4Sim/SimHelpers/SimHelpers/MemorySnooper.h
Definition at line 37 of file MemoryMonitoringTool.h.
| ISF::MemoryMonitoringTool::MemoryMonitoringTool | ( | const std::string & | t, |
| const std::string & | n, | ||
| const IInterface * | p ) |
Constructor with parameters.
Constructor.
Definition at line 16 of file MemoryMonitoringTool.cxx.
| ISF::MemoryMonitoringTool::~MemoryMonitoringTool | ( | ) |
Destructor.
Definition at line 29 of file MemoryMonitoringTool.cxx.
|
private |
consolidate /proc to determine current memory usage
Definition at line 138 of file MemoryMonitoringTool.cxx.
|
virtual |
dump current memory monitoring information
Definition at line 66 of file MemoryMonitoringTool.cxx.
|
virtual |
dump all internally stored memory monitoring information
Definition at line 108 of file MemoryMonitoringTool.cxx.
| StatusCode ISF::MemoryMonitoringTool::finalize | ( | ) |
Athena algtool Hook.
Definition at line 51 of file MemoryMonitoringTool.cxx.
|
virtual |
return current memory usage in kBytes
Definition at line 60 of file MemoryMonitoringTool.cxx.
| StatusCode ISF::MemoryMonitoringTool::initialize | ( | ) |
Athena algtool Hooks.
Definition at line 41 of file MemoryMonitoringTool.cxx.
|
virtual |
store the current memory monitoring information internally
Definition at line 93 of file MemoryMonitoringTool.cxx.
|
private |
Definition at line 70 of file MemoryMonitoringTool.h.
|
private |
Definition at line 71 of file MemoryMonitoringTool.h.
|
private |
needed to compute per event stats
Definition at line 68 of file MemoryMonitoringTool.h.
|
private |
Definition at line 69 of file MemoryMonitoringTool.h.
|
private |
storing all (infoStr,memUsage) pairs created in recordCurrent(..) calls
Definition at line 74 of file MemoryMonitoringTool.h.