35 std::cerr << boost::format(
"ProcInfo could not open input file %s for object %s\n")
45 std::cerr << boost::format(
"ProcInfo could not open output report file %s for object %s\n")
64 unsigned long n_vm_size, n_resident_pages,
65 n_shared_pages, n_text_pages,
66 n_lib_pages, n_data_stack_pages, n_dirty_pages;
115 out << boost::format(
"%s %s %ld vm_size %d rss %d sh %d txt %d lib %d dss %d dirty %d\n")
124 boost::posix_time::ptime t1;
125 t1 = boost::posix_time::second_clock::local_time();
126 return to_simple_string(t1);
bool getInfo()
retrieve current memory usage info from statm
std::string unit_name
the name of the unit reporting status
unsigned long resident_pages
unsigned long data_stack_pages
unsigned long dirty_pages
std::string curDateTime()
unsigned long shared_pages
unsigned long last_elapsed
unsigned long getElapsedTime()
void openFiles(const std::string &of_name)
std::string statm_file_name