libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
Some basic statistics collected about the operation of the wrapping thread_pool. More...
#include <thread_statistics.hpp>
Classes | |
class | process_work_type |
Public Types | |
typedef Sz | work_added_type |
typedef ave_deviation_meter< work_added_type > | ave_stats_type |
typedef process_work_type | vertical_statistics_type |
typedef process_work_type | hrz_statistics_type |
Public Member Functions | |
constexpr | basic_statistics () noexcept(true) FORCE_INLINE |
void | added_work () noexcept(true) FORCE_INLINE |
work_added_type __fastcall | total_work_added () const noexcept(true) FORCE_INLINE |
void | processed_vertical_work () noexcept(true) FORCE_INLINE |
void | add_vertical_work (ave_stats_type const &wk) noexcept(true) FORCE_INLINE |
ave_stats_type const &__fastcall | total_vertical_work () const noexcept(true) FORCE_INLINE |
void | processed_hrz_work () noexcept(true) FORCE_INLINE |
void | add_hrz_work (ave_stats_type const &wk) noexcept(true) FORCE_INLINE |
ave_stats_type const &__fastcall | total_hrz_work () const noexcept(true) |
void | update_max_queue_len (work_added_type const l) noexcept(true) FORCE_INLINE |
void | update_colln_stats (work_added_type const l) noexcept(true) FORCE_INLINE |
Friends | |
tostream &__fastcall | operator<< (tostream &os, basic_statistics const &p) noexcept(false) |
Some basic statistics collected about the operation of the wrapping thread_pool.
Note that this class does not use add any locking nor wrap the work_added_type as an atomic object, therefore the updates to it may suffer from races, if the work_added_type is not itself atomic. This is by design: performance vs. accuracy and locking reduces performance, and this class is designed to be fast, not accurate, so the statistics gathered may be under-estimates.
Definition at line 78 of file thread_statistics.hpp.
typedef ave_deviation_meter<work_added_type> jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::basic_statistics< Sz >::ave_stats_type |
Definition at line 81 of file thread_statistics.hpp.
typedef process_work_type jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::basic_statistics< Sz >::hrz_statistics_type |
Definition at line 90 of file thread_statistics.hpp.
typedef process_work_type jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::basic_statistics< Sz >::vertical_statistics_type |
Definition at line 89 of file thread_statistics.hpp.
typedef Sz jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::basic_statistics< Sz >::work_added_type |
Definition at line 80 of file thread_statistics.hpp.
|
inlineconstexprnoexcept |
Definition at line 92 of file thread_statistics.hpp.
|
inlinenoexcept |
Definition at line 116 of file thread_statistics.hpp.
|
inlinenoexcept |
Definition at line 106 of file thread_statistics.hpp.
|
inlinenoexcept |
Definition at line 96 of file thread_statistics.hpp.
|
inlinenoexcept |
Definition at line 113 of file thread_statistics.hpp.
|
inlinenoexcept |
Definition at line 103 of file thread_statistics.hpp.
|
inlinenoexcept |
Definition at line 119 of file thread_statistics.hpp.
|
inlinenoexcept |
Definition at line 109 of file thread_statistics.hpp.
|
inlinenoexcept |
Definition at line 99 of file thread_statistics.hpp.
|
inlinenoexcept |
Definition at line 127 of file thread_statistics.hpp.
|
inlinenoexcept |
Definition at line 123 of file thread_statistics.hpp.
|
friend |
Definition at line 134 of file thread_statistics.hpp.