src/linux_parser.cpp
// DONE: Read and return the memory used by a process
Read and return the memory used by a process
Read and return the memory used by a process
string LinuxParser::Ram(int pid) {
  string vm_size = "VmSize:";
  int ram = findValueByKey<int> (vm_size, to_string(pid)+kStatusFilename)/1000;
  return to_string(ram);
}
string LinuxParser :: Ram ( int pid ) { string vm_size = " " ; int ram = findValueByKey < int > ( vm_size , to_string ( pid ) + kStatusFilename ) / 1000 ; return to_string ( ram ) ; }
DONE: Read and return the memory used by a process
DONE : Read and return the memory used by a process