IM-SRG++  0
IMSRGProfiler.hh
1 #ifndef IMSRGProfiler_h
2 #define IMSRGProfiler_h 1
3 
4 #include <unistd.h>
5 #include <sstream>
6 #include <stdio.h>
7 #include <iostream>
8 #include <iomanip>
9 #include <map>
10 
14 
15 using namespace std;
16 
18 {
19  public:
20  // timer and counter are declaired as static so that there's only one copy of each of them
21  static map<string, double> timer;
22  static map<string, int> counter;
23  static float start_time;
24 
25  IMSRGProfiler();
26  map<string,size_t> CheckMem(); // Kbytes RSS DIRTY
27  map<string,float> GetTimes(); // real user sys
28  void PrintTimes();
29  void PrintCounters();
30  void PrintMemory();
31  void PrintAll();
32  size_t MaxMemUsage();
33 };
34 
35 #endif
Definition: ReadWrite.cc:3012
Definition: IMSRGProfiler.hh:17
static map< string, double > timer
For keeping timing information for various method calls.
Definition: IMSRGProfiler.hh:21