SObjectizer  5.8
Loading...
Searching...
No Matches
so_5::stats::activity_stats_t Struct Reference

Statistics of some activity. More...

#include <work_thread_activity.hpp>

Public Attributes

std::uint_fast64_t m_count {}
 Count of events in that period of time.
 
duration_t m_total_time {}
 Total time spent for events in that period of time.
 
duration_t m_avg_time {}
 Average time for one event.
 
std::optional< duration_tm_current_activity_time
 

Detailed Description

Statistics of some activity.

Since
v.5.5.18

Definition at line 52 of file work_thread_activity.hpp.

Member Data Documentation

◆ m_avg_time

duration_t so_5::stats::activity_stats_t::m_avg_time {}

Average time for one event.

Definition at line 61 of file work_thread_activity.hpp.

◆ m_count

std::uint_fast64_t so_5::stats::activity_stats_t::m_count {}

Count of events in that period of time.

Definition at line 55 of file work_thread_activity.hpp.

◆ m_current_activity_time

std::optional< duration_t > so_5::stats::activity_stats_t::m_current_activity_time

Duration of the current activity.

This value is defined only if the current activity is present. Otherwise it will be nullopt.

When it isn't nullopt it contains duration of the current activity. For example, the total execution time of the current event handler. If an instance of activity_stats_t describes waiting, then this field shows duration of the current waiting period.

Since
v.5.8.5

Definition at line 75 of file work_thread_activity.hpp.

◆ m_total_time

duration_t so_5::stats::activity_stats_t::m_total_time {}

Total time spent for events in that period of time.

Definition at line 58 of file work_thread_activity.hpp.


The documentation for this struct was generated from the following file: