Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::sample_data Class Reference

#include <profiler.h>

Public Member Functions

 sample_data ()
 
auto reset (float value) -> void
 
auto push_sample (float value) -> void
 
auto get_values () const -> const float *
 
auto get_offset () const -> int32_t
 
auto get_min () const -> float
 
auto get_max () const -> float
 
auto get_average () const -> float
 

Static Public Attributes

static constexpr uint32_t num_samples = 500
 

Detailed Description

Definition at line 25 of file profiler.h.

Constructor & Destructor Documentation

◆ sample_data()

unravel::sample_data::sample_data ( )
inline

Definition at line 30 of file profiler.h.

Member Function Documentation

◆ get_average()

auto unravel::sample_data::get_average ( ) const -> float
inline

Definition at line 108 of file profiler.h.

◆ get_max()

auto unravel::sample_data::get_max ( ) const -> float
inline

Definition at line 107 of file profiler.h.

◆ get_min()

auto unravel::sample_data::get_min ( ) const -> float
inline

Definition at line 106 of file profiler.h.

◆ get_offset()

auto unravel::sample_data::get_offset ( ) const -> int32_t
inline

Definition at line 105 of file profiler.h.

◆ get_values()

auto unravel::sample_data::get_values ( ) const -> const float*
inline

Definition at line 104 of file profiler.h.

◆ push_sample()

auto unravel::sample_data::push_sample ( float value) -> void
inline

Definition at line 48 of file profiler.h.

◆ reset()

auto unravel::sample_data::reset ( float value) -> void
inline

Definition at line 35 of file profiler.h.

Member Data Documentation

◆ num_samples

uint32_t unravel::sample_data::num_samples = 500
staticconstexpr

Definition at line 28 of file profiler.h.


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