16 #ifndef BASE_FAIRMONITOR_H_
17 #define BASE_FAIRMONITOR_H_
21 #include <TStopwatch.h>
36 fRunMonitor = tempBool;
37 fOutputFileName = fileName;
53 void StartTimer(
const TTask* tTask,
const char* identStr);
54 void StopTimer(
const TTask* tTask,
const char* identStr);
59 void RecordInfo(
const TTask* tTask,
const char* identStr, Double_t value);
61 void RecordRegister(
const char* name,
const char* folderName, Bool_t toFile);
66 virtual void Print(Option_t* option =
"")
const;
67 virtual void Draw(Option_t* option =
"");
70 void PrintTask(TTask* tempTask, Int_t taskLevel = 0)
const;
90 std::map<TString, TStopwatch> fTimerMap;
91 std::map<TString, Int_t> fMemoryMap;
96 Int_t fNoTaskRequired;
101 TString fOutputFileName;
103 std::multimap<TString, TString> fTaskRequired;
104 std::multimap<TString, TString> fTaskCreated;
105 std::multimap<TString, TString> fTaskCreatedTemp;
107 std::map<TString, Int_t> fObjectMap;
108 std::map<TString, Int_t> fTaskMap;
110 std::map<TString, std::pair<Double_t, Double_t>> fObjectPos;
111 std::map<TString, std::pair<Double_t, Double_t>> fTaskPos;
113 void GetTaskMap(TTask* tempTask);
114 void AnalyzeObjectMap(TTask* tempTask);
121 #endif // BASE_FAIRMONITOR_H_
void RecordInfo(const TTask *tTask, const char *identStr, Double_t value)
virtual void Print(Option_t *option="") const
void DrawHist(TString specString)
void SetCurrentTask(TTask *tTask)
void EnableDrawing(Bool_t tempBool=kTRUE)
void StartMemoryMonitor(const TTask *tTask, const char *identStr)
void StopTimer(const TTask *tTask, const char *identStr)
static FairMonitor * GetMonitor()
void RecordGetting(const char *name)
void StopMemoryMonitor(const TTask *tTask, const char *identStr)
void RecordRegister(const char *name, const char *folderName, Bool_t toFile)
void EnableMonitor(Bool_t tempBool=kTRUE, TString fileName="")
void StartTimer(const TTask *tTask, const char *identStr)
virtual void Draw(Option_t *option="")
void StopMonitoring(const TTask *tTask, const char *identStr)
void StoreHistograms(TFile *sinkFile)
void StartMonitoring(const TTask *tTask, const char *identStr)
void PrintTask(TString specString) const