8 #ifndef META_OCEAN_SYSTEM_PROCESS_H
9 #define META_OCEAN_SYSTEM_PROCESS_H
113 mutable int64_t loadTimestamp_ = 0ll;
116 mutable int64_t loadTime_ = 0ll;
119 const unsigned int numberCores_ = 0u;
This template class is the base class for all singleton objects.
Definition: Singleton.h:71
This class implements basic functions related with the application process.
Definition: Process.h:26
Process()
Creates a new process object.
static ProcessPriority priority()
Returns the priority of the process.
static bool setPriority(const ProcessPriority priority)
Sets the priority of the process.
static double entireProcessorTime()
Returns the entire processor time of this process since the creation.
static double entireProcessLiveTime()
Returns the live time of this process since the creation.
float currentProcessorLoad() const
Returns the processor load since the last call to this function.
static long long processStartTime()
Returns the start time of this process since 01.01.1970 00:00:00 in UTC time.
float averageProcessorLoad() const
Returns the average processor load of this process since the creation.
ProcessPriority
Definition of different process priority values.
Definition: Process.h:35
@ PRIORITY_NORMAL
The process has a normal priority.
Definition: Process.h:41
@ PRIORITY_BELOW_NORMAL
The process has a priority below normal.
Definition: Process.h:39
@ PRIORITY_IDLE
The process runs if the system is idle.
Definition: Process.h:37
@ PRIORITY_HIGH
The process has a high priority.
Definition: Process.h:45
@ PRIORITY_ABOVE_NORMAL
The process has a priority above normal.
Definition: Process.h:43
static unsigned int currentProcessId()
Returns the process id of the current (calling) process.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15