CPUSegment.h
Go to the documentation of this file.
1 #pragma once
2 
3 // STD/STL
4 #include <iostream>
5 #include <csignal>
6 #include <memory>
7 #include <atomic>
8 #include <thread>
9 
10 // System Monitor
18 
19 // BaseClass
21 
22 // ArmarX
24 
26 {
28  {
30 
31  public:
33 
34  void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string& prefix = "") override;
35  void init() override;
36 
37  private:
38  void loop();
39 
40  private:
41  float pollFrequencyHz = 10.0;
42  std::unique_ptr<cpuLoad> cpuMonitoring = std::make_unique<cpuLoad>("/proc/stat");
43 
45  };
46 }
linux_memoryload.hpp
armarx::armem::server::systemstate::segment::LightweightCpuMonitorProviderSegment::LightweightCpuMonitorProviderSegment
LightweightCpuMonitorProviderSegment(armem::server::MemoryToIceAdapter &iceMemory)
Definition: CPUSegment.cpp:16
armarx::armem::server::MemoryToIceAdapter
Helps connecting a Memory server to the Ice interface.
Definition: MemoryToIceAdapter.h:19
linux_cpuload.hpp
PeriodicTask.h
armarx::armem::server::segment::SpecializedProviderSegment
A base class for provider segments.
Definition: SpecializedProviderSegment.h:20
linux_process_load.hpp
linux_systemutil.hpp
timer.hpp
armarx::armem::server::systemstate::segment::LightweightCpuMonitorProviderSegment
Definition: CPUSegment.h:27
armarx::armem::server::segment::detail::SegmentBase< server::wm::ProviderSegment >
linux_networkload.hpp
armarx::armem::server::systemstate::segment::LightweightCpuMonitorProviderSegment::init
void init() override
Definition: CPUSegment.cpp:27
armarx::armem::server::segment::detail::SegmentBase< server::wm::ProviderSegment >::iceMemory
MemoryToIceAdapter & iceMemory
Definition: SpecializedSegment.h:60
armarx::armem::server::systemstate::segment::LightweightCpuMonitorProviderSegment::defineProperties
void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
Definition: CPUSegment.cpp:22
IceUtil::Handle< class PropertyDefinitionContainer >
SpecializedProviderSegment.h
record_value.hpp
armarx::armem::server::systemstate::segment
Definition: CPUSegment.cpp:14