1#ifndef CPUSTATEFETCHER_H
2#define CPUSTATEFETCHER_H
62 void setup_platform_relative();
71 int flush_msecs { 1500 };
The CCIMX_AbstractCPUStateDriver class Abstract base class factory to provide platform-specific CPU s...
Definition CPUStateFetcher.h:78
virtual void factory(CPUStateFetcher::CPUState &state)=0
factory Fills the CPUState structure with current CPU usage data.
The CPUStateFetcher class Provides CPU state information in a platform-independent manner....
Definition CPUStateFetcher.h:14
struct CPUStateFetcher::CPUState cpustate
cpu state memorizer
void set_capture_state(bool st)
set_capture_state Enables or disables the CPU state capture.
Definition CPUStateFetcher.cpp:21
~CPUStateFetcher()
Destructor, cleans up resources.
Definition CPUStateFetcher.cpp:14
void flush_cpustate(const CPUStateFetcher::CPUState &state)
flush_cpustate Signal emitted when CPU state is updated.
The CPUState struct Represents CPU usage state including idle, user, kernel and total time....
Definition CPUStateFetcher.h:33
double tol
Total time (sum of above), platform-dependent meaning.
Definition CPUStateFetcher.h:37
double idle
CPU idle time.
Definition CPUStateFetcher.h:34
double user
CPU user time.
Definition CPUStateFetcher.h:35
double kernel
CPU kernel time.
Definition CPUStateFetcher.h:36