Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4AllMonitoring.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4AllMonitoring.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef FUN4ALL_FUN4ALLMONITORING_H
4 #define FUN4ALL_FUN4ALLMONITORING_H
5 
6 #include "Fun4AllBase.h"
7 
8 #include <cstdint>
9 #include <string>
10 
12 {
13  public:
15  {
16  if (mInstance) return mInstance;
18  return mInstance;
19  }
20  ~Fun4AllMonitoring() override = default;
21  void Snapshot(const std::string &what = "AfterProcessEvent");
22 
23  void PrintsMaps() const;
24 
25  void Get_Memory();
26  void OutFileName(const std::string &fname);
27 
28  private:
31  uint64_t mEvent = 0;
32  uint64_t mHeapPss = 0;
33  uint64_t mMMapPSS = 0;
34  uint64_t mOtherPss = 0;
36 };
37 
38 #endif