Changeset 2427 for XIOS3/branches/xios-3.0-beta/src/mem_checker.hpp
- Timestamp:
- 11/22/22 12:43:52 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/branches/xios-3.0-beta/src/mem_checker.hpp
r2274 r2427 4 4 #include <string> 5 5 #include <map> 6 #include <fstream> 7 #include <vector> 6 8 7 9 namespace xios … … 14 16 void resume(void); 15 17 void reset(void); 16 double getCumulatedMem(void); 17 static double getMem(void); 18 std::vector<double> getCumulatedMem(void); 19 static std::vector<double> getMem(void); 20 static std::vector<double> getMemories(void); 21 static void logMem( std::string id, bool finalizeLog = false ); 18 22 static CMemChecker& get(std::string name); 19 23 static std::string getAllCumulatedMem(void) ; … … 23 27 private: 24 28 static void check(void) ; 25 doublecumulatedMem_;26 doublelastMem_;29 std::vector<double> cumulatedMem_; 30 std::vector<double> lastMem_; 27 31 bool suspended_; 28 32 std::string name_; … … 32 36 static bool first_ ; 33 37 static bool enabled_ ; 38 39 static double vsize_init_; 40 static double rss_init_; 41 static double vmhwm_init_; 42 static double time_init_; 43 static std::ofstream fout_; 44 static int flush_counter_; 34 45 }; 35 46 }
Note: See TracChangeset
for help on using the changeset viewer.