Simple Runtime Analyzer
Loading...
Searching...
No Matches
sra::RuntimeProfile< Unit > Struct Template Reference

#include <runtime_analyzer.hpp>

Public Member Functions

 RuntimeProfile (std::vector< Unit > &&_raw_durations, std::vector< size_t > &&_sample_sizes) noexcept
 
template<ChronoDuration OtherUnit>
 RuntimeProfile (const RuntimeProfile< OtherUnit > &other)
 
template<ChronoDuration UnitTo>
RuntimeProfile< UnitTo > convert_to () const
 
std::size_t size () const noexcept
 
bool empty () const noexcept
 

Public Attributes

std::vector< Unit > raw_durations
 
std::vector< size_t > sample_sizes
 
std::string unit_symbol
 

Constructor & Destructor Documentation

◆ RuntimeProfile() [1/2]

template<ChronoDuration Unit>
sra::RuntimeProfile< Unit >::RuntimeProfile ( std::vector< Unit > && _raw_durations,
std::vector< size_t > && _sample_sizes )
inlinenoexcept

◆ RuntimeProfile() [2/2]

template<ChronoDuration Unit>
template<ChronoDuration OtherUnit>
sra::RuntimeProfile< Unit >::RuntimeProfile ( const RuntimeProfile< OtherUnit > & other)
inlineexplicit

Member Function Documentation

◆ convert_to()

template<ChronoDuration Unit>
template<ChronoDuration UnitTo>
RuntimeProfile< UnitTo > sra::RuntimeProfile< Unit >::convert_to ( ) const
inlinenodiscard

◆ empty()

template<ChronoDuration Unit>
bool sra::RuntimeProfile< Unit >::empty ( ) const
inlinenodiscardnoexcept

◆ size()

template<ChronoDuration Unit>
std::size_t sra::RuntimeProfile< Unit >::size ( ) const
inlinenodiscardnoexcept

Member Data Documentation

◆ raw_durations

template<ChronoDuration Unit>
std::vector<Unit> sra::RuntimeProfile< Unit >::raw_durations

◆ sample_sizes

template<ChronoDuration Unit>
std::vector<size_t> sra::RuntimeProfile< Unit >::sample_sizes

◆ unit_symbol

template<ChronoDuration Unit>
std::string sra::RuntimeProfile< Unit >::unit_symbol

The documentation for this struct was generated from the following file: