|
PACS System 0.1.0
PACS DICOM system library
|
Statistics for object pool usage monitoring. More...
#include <pool_manager.h>

Public Member Functions | |
| auto | hit_ratio () const noexcept -> double |
| Calculate hit ratio (0.0 to 1.0) | |
| void | reset () noexcept |
| Reset all statistics. | |
Public Attributes | |
| std::atomic< uint64_t > | total_acquisitions {0} |
| std::atomic< uint64_t > | pool_hits {0} |
| std::atomic< uint64_t > | pool_misses {0} |
| std::atomic< uint64_t > | total_releases {0} |
Statistics for object pool usage monitoring.
Definition at line 37 of file pool_manager.h.
|
inlinenodiscardnoexcept |
Calculate hit ratio (0.0 to 1.0)
Definition at line 47 of file pool_manager.h.
References pool_hits, and total_acquisitions.
|
inlinenoexcept |
Reset all statistics.
Definition at line 59 of file pool_manager.h.
References pool_hits, pool_misses, total_acquisitions, and total_releases.
Referenced by kcenon::pacs::core::pool_manager::reset_statistics().

| std::atomic<uint64_t> kcenon::pacs::core::pool_statistics::pool_hits {0} |
Definition at line 39 of file pool_manager.h.
Referenced by kcenon::pacs::core::tracked_pool< T >::acquire(), hit_ratio(), and reset().
| std::atomic<uint64_t> kcenon::pacs::core::pool_statistics::pool_misses {0} |
Definition at line 40 of file pool_manager.h.
Referenced by kcenon::pacs::core::tracked_pool< T >::acquire(), and reset().
| std::atomic<uint64_t> kcenon::pacs::core::pool_statistics::total_acquisitions {0} |
Definition at line 38 of file pool_manager.h.
Referenced by kcenon::pacs::core::tracked_pool< T >::acquire(), hit_ratio(), and reset().
| std::atomic<uint64_t> kcenon::pacs::core::pool_statistics::total_releases {0} |