Global statistics tracker for instrumented operations Thread-safe using atomic counters.
More...
#include <instrumented.hpp>
|
| static std::atomic< uint64_t > | loads {0} |
| static std::atomic< uint64_t > | stores {0} |
| static std::atomic< uint64_t > | adds {0} |
| static std::atomic< uint64_t > | subs {0} |
| static std::atomic< uint64_t > | muls {0} |
| static std::atomic< uint64_t > | divs {0} |
| static std::atomic< uint64_t > | rems {0} |
| static std::atomic< uint64_t > | sqrts {0} |
| static std::atomic< uint64_t > | comparisons {0} |
| static std::atomic< uint64_t > | conversions {0} |
Global statistics tracker for instrumented operations Thread-safe using atomic counters.
◆ recordAdd()
| void sw::universal::instrumented_stats::recordAdd |
( |
| ) |
|
|
inlinestatic |
◆ recordComparison()
| void sw::universal::instrumented_stats::recordComparison |
( |
| ) |
|
|
inlinestatic |
◆ recordConversion()
| void sw::universal::instrumented_stats::recordConversion |
( |
| ) |
|
|
inlinestatic |
◆ recordDiv()
| void sw::universal::instrumented_stats::recordDiv |
( |
| ) |
|
|
inlinestatic |
◆ recordLoad()
| void sw::universal::instrumented_stats::recordLoad |
( |
| ) |
|
|
inlinestatic |
◆ recordMul()
| void sw::universal::instrumented_stats::recordMul |
( |
| ) |
|
|
inlinestatic |
◆ recordRem()
| void sw::universal::instrumented_stats::recordRem |
( |
| ) |
|
|
inlinestatic |
◆ recordSqrt()
| void sw::universal::instrumented_stats::recordSqrt |
( |
| ) |
|
|
inlinestatic |
◆ recordStore()
| void sw::universal::instrumented_stats::recordStore |
( |
| ) |
|
|
inlinestatic |
◆ recordSub()
| void sw::universal::instrumented_stats::recordSub |
( |
| ) |
|
|
inlinestatic |
◆ report()
| void sw::universal::instrumented_stats::report |
( |
std::ostream & | ostr = std::cout | ) |
|
|
inlinestatic |
◆ reset()
| void sw::universal::instrumented_stats::reset |
( |
| ) |
|
|
inlinestatic |
Reset all counters to zero.
◆ snapshot()
template<typename NumberSystem = void>
| occurrence< NumberSystem > sw::universal::instrumented_stats::snapshot |
( |
| ) |
|
|
inlinestatic |
Get a snapshot of current counts as occurrence struct.
◆ totalArithmeticOps()
| uint64_t sw::universal::instrumented_stats::totalArithmeticOps |
( |
| ) |
|
|
inlinestatic |
Get total arithmetic operations.
◆ totalMemoryOps()
| uint64_t sw::universal::instrumented_stats::totalMemoryOps |
( |
| ) |
|
|
inlinestatic |
Get total memory operations.
◆ adds
| std::atomic< uint64_t > sw::universal::instrumented_stats::adds {0} |
|
inlinestatic |
◆ comparisons
| std::atomic< uint64_t > sw::universal::instrumented_stats::comparisons {0} |
|
inlinestatic |
◆ conversions
| std::atomic< uint64_t > sw::universal::instrumented_stats::conversions {0} |
|
inlinestatic |
◆ divs
| std::atomic< uint64_t > sw::universal::instrumented_stats::divs {0} |
|
inlinestatic |
◆ loads
| std::atomic< uint64_t > sw::universal::instrumented_stats::loads {0} |
|
inlinestatic |
◆ muls
| std::atomic< uint64_t > sw::universal::instrumented_stats::muls {0} |
|
inlinestatic |
◆ rems
| std::atomic< uint64_t > sw::universal::instrumented_stats::rems {0} |
|
inlinestatic |
◆ sqrts
| std::atomic< uint64_t > sw::universal::instrumented_stats::sqrts {0} |
|
inlinestatic |
◆ stores
| std::atomic< uint64_t > sw::universal::instrumented_stats::stores {0} |
|
inlinestatic |
◆ subs
| std::atomic< uint64_t > sw::universal::instrumented_stats::subs {0} |
|
inlinestatic |
The documentation for this class was generated from the following file:
- /home/runner/work/universal/universal/include/sw/universal/utility/instrumented.hpp