hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCEProcessData.hpp
Go to the documentation of this file.
1 
14 #ifndef DRCE_PROCESS_DATA_HPP
15 #define DRCE_PROCESS_DATA_HPP
16 
17 #include <string>
18 
19 namespace HCE
20 {
21 namespace drce
22 {
23 //-----------------------------------------------------------------------------
25 {
26  ProcessData(void);
27  ProcessData(const ProcessData& rhs);
28  ProcessData(ProcessData&& rhs);
29 
30  ProcessData& operator=(const ProcessData& rhs);
32 
33  void clear(void);
34 
35  pid_t pid; // process id
36  pid_t ppid; // parent process id
37  size_t vram; // vsize memory (in bytes)
38  size_t rram; // rss memory (in bytes)
39  unsigned int threads; // number of threads
40  size_t utime; // user-mode CPU time accumulated by process
41  size_t stime; // kernel-mode CPU time accumulated by process
42  size_t cutime; // cumulative utime of process and reaped children
43  size_t cstime; // cumulative stime of process and reaped children
44  std::string cmd; // basename of executable file in call to exec(2)
45 };
46 //-----------------------------------------------------------------------------
47 //-----------------------------------------------------------------------------
48 } // end namespace drce
49 } // end namespace HCE
50 
51 #endif // DRCE_PROCESS_DATA_HPP