RTC Toolkit 6.0.0
Loading...
Searching...
No Matches
fakeComponentMetrics.hpp
Go to the documentation of this file.
1
11#ifndef RTCTK_COMPONENTFRAMEWORK_FAKECOMPONENTMETRICS_HPP
12#define RTCTK_COMPONENTFRAMEWORK_FAKECOMPONENTMETRICS_HPP
13
15
17
21
22 void StartMonitoring() override {
23 }
24
25 void StopMonitoring() noexcept override {
26 }
27
28 bool IsMonitoring() noexcept override {
29 return true;
30 }
31
32 void UpdateParams() override {
33 }
34
35 [[nodiscard]] virtual perfc::ScopedRegistration
37 return {};
38 }
39
40 bool RemoveCounter(CounterVariant counter) override {
41 return true;
42 }
43};
44
45} // namespace rtctk::componentFramework
46
47#endif // RTCTK_COMPONENTFRAMEWORK_FAKECOMPONENTMETRICS_HPP
Component metrics interface.
Definition componentMetricsIf.hpp:163
typename CounterTypes::CounterVariant CounterVariant
std::variant of pointers to each supported type in CounterTypes.
Definition componentMetricsIf.hpp:220
perfc::CounterTypes< perfc::CounterDouble, perfc::CounterU64, perfc::CounterI64 > CounterTypes
Defines standard performance counter types:
Definition componentMetricsIf.hpp:213
Defines auxiliary information associated with each counter registered with ComponentMetricsIf.
Definition componentMetricsIf.hpp:48
Header file for ComponentMetricsIf.
Definition commandReplier.cpp:21
Definition fakeComponentMetrics.hpp:18
typename CounterTypes::CounterVariant CounterVariant
std::variant of pointers to each supported type in CounterTypes.
Definition componentMetricsIf.hpp:220
bool RemoveCounter(CounterVariant counter) override
Remove counter from register.
Definition fakeComponentMetrics.hpp:40
bool IsMonitoring() noexcept override
Query whether monitoring is active.
Definition fakeComponentMetrics.hpp:28
void StartMonitoring() override
Start monitoring and publishing metrics.
Definition fakeComponentMetrics.hpp:22
virtual perfc::ScopedRegistration AddCounter(CounterVariant counter, CounterMetricInfo info) override
Add a counter to be included in component metrics, identified by its address, together with info to t...
Definition fakeComponentMetrics.hpp:36
void UpdateParams() override
Reloads parameters.
Definition fakeComponentMetrics.hpp:32
void StopMonitoring() noexcept override
Stop monitoring.
Definition fakeComponentMetrics.hpp:25