ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/framework/fun4all/Fun4AllMemoryTracker.h>
Public Member Functions | |
~Fun4AllMemoryTracker () override | |
void | Snapshot (const std::string &trackername, const std::string &group="") |
void | Start (const std::string &trackername, const std::string &group="") |
void | Stop (const std::string &trackername, const std::string &group="") |
int | GetRSSMemory () const |
void | PrintMemoryTracker (const std::string &name="") const |
std::vector< int > | GetMemoryVector (const std::string &name) const |
Public Member Functions inherited from Fun4AllBase | |
virtual | ~Fun4AllBase () |
virtual const std::string | Name () const |
Returns the name of this module. | |
virtual void | Name (const std::string &name) |
Sets the name of this module. | |
virtual void | Print (const std::string &what="ALL") const |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual void | Verbosity (enu_Verbosity ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual int | Verbosity () const |
Gets the verbosity of this module. | |
Static Public Member Functions | |
static Fun4AllMemoryTracker * | instance () |
Private Member Functions | |
Fun4AllMemoryTracker () | |
std::string | CreateFullTrackerName (const std::string &trackername, const std::string &group="") |
Private Attributes | |
std::map< std::string, std::vector< int > > | mMemoryTrackerMap |
std::map< std::string, int > | mStartMem |
Static Private Attributes | |
static Fun4AllMemoryTracker * | mInstance = nullptr |
Additional Inherited Members | |
Public Types inherited from Fun4AllBase | |
enum | enu_Verbosity { VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3, VERBOSITY_A_LOT = 4, VERBOSITY_MAX = INT_MAX - 10 } |
Protected Member Functions inherited from Fun4AllBase | |
Fun4AllBase (const std::string &name="NONAME") | |
Definition at line 12 of file Fun4AllMemoryTracker.h.
View newest version in sPHENIX GitHub at line 12 of file Fun4AllMemoryTracker.h
|
override |
Definition at line 24 of file Fun4AllMemoryTracker.cc.
View newest version in sPHENIX GitHub at line 24 of file Fun4AllMemoryTracker.cc
References mMemoryTrackerMap, and mStartMem.
|
private |
Definition at line 12 of file Fun4AllMemoryTracker.cc.
View newest version in sPHENIX GitHub at line 12 of file Fun4AllMemoryTracker.cc
Referenced by instance().
|
private |
Definition at line 97 of file Fun4AllMemoryTracker.cc.
View newest version in sPHENIX GitHub at line 97 of file Fun4AllMemoryTracker.cc
Referenced by Snapshot(), Start(), and Stop().
vector< int > Fun4AllMemoryTracker::GetMemoryVector | ( | const std::string & | name | ) | const |
Definition at line 149 of file Fun4AllMemoryTracker.cc.
View newest version in sPHENIX GitHub at line 149 of file Fun4AllMemoryTracker.cc
References mMemoryTrackerMap.
int Fun4AllMemoryTracker::GetRSSMemory | ( | ) | const |
Definition at line 17 of file Fun4AllMemoryTracker.cc.
View newest version in sPHENIX GitHub at line 17 of file Fun4AllMemoryTracker.cc
Referenced by Snapshot(), Start(), and Stop().
|
inlinestatic |
Definition at line 15 of file Fun4AllMemoryTracker.h.
View newest version in sPHENIX GitHub at line 15 of file Fun4AllMemoryTracker.h
References Fun4AllMemoryTracker(), and mInstance.
void Fun4AllMemoryTracker::PrintMemoryTracker | ( | const std::string & | name = "" | ) | const |
Definition at line 107 of file Fun4AllMemoryTracker.cc.
View newest version in sPHENIX GitHub at line 107 of file Fun4AllMemoryTracker.cc
References mMemoryTrackerMap.
Referenced by Fun4AllServer::PrintMemoryTracker().
void Fun4AllMemoryTracker::Snapshot | ( | const std::string & | trackername, |
const std::string & | group = "" |
||
) |
Definition at line 30 of file Fun4AllMemoryTracker.cc.
View newest version in sPHENIX GitHub at line 30 of file Fun4AllMemoryTracker.cc
References CreateFullTrackerName(), GetRSSMemory(), mMemoryTrackerMap, and Fun4AllBase::Verbosity().
Referenced by Fun4AllServer::BeginRun(), and Fun4AllServer::process_event().
void Fun4AllMemoryTracker::Start | ( | const std::string & | trackername, |
const std::string & | group = "" |
||
) |
Definition at line 51 of file Fun4AllMemoryTracker.cc.
View newest version in sPHENIX GitHub at line 51 of file Fun4AllMemoryTracker.cc
References CreateFullTrackerName(), GetRSSMemory(), mStartMem, and Fun4AllBase::Verbosity().
Referenced by Fun4AllServer::BeginRun(), Fun4AllServer::process_event(), and Fun4AllServer::registerSubsystem().
void Fun4AllMemoryTracker::Stop | ( | const std::string & | trackername, |
const std::string & | group = "" |
||
) |
Definition at line 70 of file Fun4AllMemoryTracker.cc.
View newest version in sPHENIX GitHub at line 70 of file Fun4AllMemoryTracker.cc
References CreateFullTrackerName(), GetRSSMemory(), mMemoryTrackerMap, mStartMem, and Fun4AllBase::Verbosity().
Referenced by Fun4AllServer::BeginRun(), Fun4AllServer::process_event(), and Fun4AllServer::registerSubsystem().
|
staticprivate |
Definition at line 33 of file Fun4AllMemoryTracker.h.
View newest version in sPHENIX GitHub at line 33 of file Fun4AllMemoryTracker.h
Referenced by instance().
|
private |
Definition at line 34 of file Fun4AllMemoryTracker.h.
View newest version in sPHENIX GitHub at line 34 of file Fun4AllMemoryTracker.h
Referenced by GetMemoryVector(), PrintMemoryTracker(), Snapshot(), Stop(), and ~Fun4AllMemoryTracker().
|
private |
Definition at line 35 of file Fun4AllMemoryTracker.h.
View newest version in sPHENIX GitHub at line 35 of file Fun4AllMemoryTracker.h
Referenced by Start(), Stop(), and ~Fun4AllMemoryTracker().