SObjectizer  5.8
Loading...
Searching...
No Matches
ds_timer_thread_stats.cpp
Go to the documentation of this file.
1/*
2 * SObjectizer-5
3 */
4
5/*!
6 * \since
7 * v.5.5.4
8 *
9 * \file
10 * \brief A data source class for run-time monitoring of timer_thread.
11 */
12
13#include <so_5/stats/impl/ds_timer_thread_stats.hpp>
14
15#include <so_5/stats/messages.hpp>
16#include <so_5/stats/std_names.hpp>
17
18#include <so_5/send_functions.hpp>
19
20namespace so_5 {
21
22namespace stats {
23
24namespace impl {
25
26//
27// ds_timer_thread_stats_t
28//
33
34void
36 const mbox_t & distribution_mbox )
37 {
38 const auto stats = m_what.query_timer_thread_stats();
39
40 send< messages::quantity< std::size_t > >( distribution_mbox,
41 prefixes::timer_thread(),
42 suffixes::timer_single_shot_count(),
43 stats.m_single_shot_count );
44
45 send< messages::quantity< std::size_t > >( distribution_mbox,
46 prefixes::timer_thread(),
47 suffixes::timer_periodic_count(),
48 stats.m_periodic_count );
49 }
50
51} /* namespace impl */
52
53} /* namespace stats */
54
55} /* namespace so_5 */
An interface for environment_infrastructure entity.
virtual timer_thread_stats_t query_timer_thread_stats()=0
Query run-time statistics for timer (thread or manager).
A data source for distributing information about timer_thread.
ds_timer_thread_stats_t(so_5::environment_infrastructure_t &what)
void distribute(const mbox_t &distribution_mbox) override
Send appropriate notification about the current value.
so_5::environment_infrastructure_t & m_what
Internal implementation of run-time monitoring and statistics related stuff.
All stuff related to run-time monitoring and statistics.
Private part of message limit implementation.
Definition agent.cpp:33