CPUSegment.h
Go to the documentation of this file.
1#pragma once
2
3// STD/STL
4#include <atomic>
5#include <csignal>
6#include <iostream>
7#include <memory>
8#include <thread>
9
10// System Monitor
18
19// BaseClass
21
22// ArmarX
24
26{
29 {
31
32 public:
34
36 const std::string& prefix = "") override;
37 void init() override;
38
39 private:
40 void loop();
41
42 private:
43 float pollFrequencyHz = 10.0;
44 std::unique_ptr<cpuLoad> cpuMonitoring = std::make_unique<cpuLoad>("/proc/stat");
45
47 };
48} // namespace armarx::armem::server::systemstate::segment
IceUtil::Handle< PeriodicTask< T > > pointer_type
Shared pointer type for convenience.
Helps connecting a Memory server to the Ice interface.
void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
LightweightCpuMonitorProviderSegment(armem::server::MemoryToIceAdapter &iceMemory)
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.