SObjectizer  5.8
Loading...
Searching...
No Matches
work_thread_activity.hpp File Reference

Data types for work thread's activity stats. More...

#include <cstdint>
#include <chrono>
#include <iostream>
#include <optional>
#include <type_traits>

Go to the source code of this file.

Classes

struct  so_5::stats::activity_stats_t
 Statistics of some activity. More...
 
struct  so_5::stats::work_thread_activity_stats_t
 Stats for a work thread activity. More...
 

Namespaces

namespace  so_5
 Private part of message limit implementation.
 
namespace  so_5::stats
 All stuff related to run-time monitoring and statistics.
 
namespace  so_5::stats::details
 

Typedefs

using so_5::stats::clock_type_t
 An alias for clock type to be used for statistics.
 
using so_5::stats::duration_t = clock_type_t::duration
 An alias for type for representing time duration.
 

Functions

std::ostream & so_5::stats::operator<< (std::ostream &to, const activity_stats_t &what)
 Helper for printing value of activity_stats.
 
duration_t so_5::stats::details::calc_avg_time (std::uint_fast64_t count, duration_t previous, duration_t last)
 A function for calculating average value.
 
void so_5::stats::details::update_stats_from_duration (activity_stats_t &value_to_update, clock_type_t::duration last_duration)
 Helper function for simplification of current stats update.
 
void so_5::stats::details::update_stats_from_current_time (activity_stats_t &value_to_update, clock_type_t::time_point activity_started_at)
 Helper function for simplification of current stats update.
 

Detailed Description

Data types for work thread's activity stats.

Since
v.5.5.18

Definition in file work_thread_activity.hpp.