The Gaudi Framework  v33r1 (b1225454)
SysProcStat.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 /*
12  * SysProcStat.h
13  *
14  * Created on: Jul 6, 2012
15  * Author: Ivan Valencik
16  */
17 
18 #ifndef SYSPROCSTAT_H_
19 #define SYSPROCSTAT_H_
20 
21 namespace Gaudi {
22  class SysProcStat {
23 
24  public:
29  char comm[128], state;
30 
31  long time;
32 
33  SysProcStat();
34  virtual ~SysProcStat() = default;
35 
36  // updates the values by calling /proc/self/stat
37  virtual int update();
38  };
39 } // namespace Gaudi
40 #endif /* SYSPROCSTAT_H_ */
long unsigned sigingore
Definition: SysProcStat.h:26
long unsigned stime
Definition: SysProcStat.h:26
long unsigned startcode
Definition: SysProcStat.h:26
long unsigned sigcatch
Definition: SysProcStat.h:26
long unsigned blocked
Definition: SysProcStat.h:26
long unsigned cminflt
Definition: SysProcStat.h:26
long unsigned nswap
Definition: SysProcStat.h:26
long unsigned majflt
Definition: SysProcStat.h:26
long unsigned minflt
Definition: SysProcStat.h:26
long int itrealvalue
Definition: SysProcStat.h:28
long unsigned kstkeip
Definition: SysProcStat.h:26
long unsigned wchan
Definition: SysProcStat.h:26
long unsigned vsize
Definition: SysProcStat.h:26
virtual int update()
Definition: SysProcStat.cpp:29
long unsigned cnswap
Definition: SysProcStat.h:26
long unsigned cmajflt
Definition: SysProcStat.h:26
long unsigned signal
Definition: SysProcStat.h:26
long unsigned utime
Definition: SysProcStat.h:26
long unsigned kstkesp
Definition: SysProcStat.h:26
long unsigned startstack
Definition: SysProcStat.h:26
long unsigned rlim
Definition: SysProcStat.h:26
long unsigned flags
Definition: SysProcStat.h:26
Header file for std:chrono::duration-based Counters.
Definition: __init__.py:1
long unsigned startime
Definition: SysProcStat.h:26
long int num_threads
Definition: SysProcStat.h:28
long unsigned endcode
Definition: SysProcStat.h:26
virtual ~SysProcStat()=default