Example program to show memory usage.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "JSystem/JShell.hh"
#include "JSystem/JSystemToolkit.hh"
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to show memory usage. 
- Author
 - mdejong 
 
Definition in file JMemoryUsage.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 20 of file JMemoryUsage.cc.
   29     JParser<> zap(
"Example program to show memory usage.");
 
   36   catch(
const exception &error) {
 
   37     FATAL(error.what() << endl);
 
   46   typedef long long int  JType_t;
 
   48   const int size = size_B / 
sizeof(JType_t);
 
   53   JType_t* buffer = 
new JType_t[size];
 
   58   for (
int i = 0; i != size; ++i) {
 
Utility class to parse command line options. 
 
float getMemoryUsage(JShell &shell, const pid_t pid)
Get memory usage in percent of given process identifier. 
 
Auxiliary data structure for floating point format specification. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object