SObjectizer  5.5
Classes | Namespaces | Typedefs | Functions
work_thread_activity.hpp File Reference

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

#include <cstdint>
#include <chrono>
#include <iostream>
#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

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

Typedefs

using so_5::stats::clock_type_t = std::conditional< std::chrono::high_resolution_clock::is_steady, std::chrono::high_resolution_clock, std::chrono::steady_clock >::type
 An alias for clock type to be used for statistics. More...
 
using so_5::stats::duration_t = clock_type_t::duration
 An alias for type for representing time duration. More...
 

Functions

std::ostream & so_5::stats::operator<< (std::ostream &to, const activity_stats_t &what)
 Helper for printing value of activity_stats. More...
 
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. More...
 
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. More...
 
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. More...
 

Detailed Description

Data types for work thread's activity stats.

Since
v.5.5.18