Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::instrumented_scope Class Reference

RAII guard for scoped statistics collection. More...

#include <instrumented.hpp>

Public Member Functions

 instrumented_scope ()
 ~instrumented_scope ()=default
template<typename NumberSystem = void>
occurrence< NumberSystem > stats () const
void report (std::ostream &ostr=std::cout) const

Detailed Description

RAII guard for scoped statistics collection.

Constructor & Destructor Documentation

◆ instrumented_scope()

sw::universal::instrumented_scope::instrumented_scope ( )
inline

◆ ~instrumented_scope()

sw::universal::instrumented_scope::~instrumented_scope ( )
default

Member Function Documentation

◆ report()

void sw::universal::instrumented_scope::report ( std::ostream & ostr = std::cout) const
inline

◆ stats()

template<typename NumberSystem = void>
occurrence< NumberSystem > sw::universal::instrumented_scope::stats ( ) const
inline

The documentation for this class was generated from the following file:
  • /home/runner/work/universal/universal/include/sw/universal/utility/instrumented.hpp