Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::performance_profiler::per_frame_data Struct Reference

Per-name aggregate timing data with rolling history. More...

#include <profiler.h>

Public Member Functions

 per_frame_data ()=default
 
 per_frame_data (float t)
 
 operator float () const
 
auto operator+= (float t) -> per_frame_data &
 
auto get_time_since_swap () const -> float
 
auto get_samples_since_swap () const -> uint32_t
 
auto get_avg () const -> float
 
auto get_min () const -> float
 
auto get_max () const -> float
 
auto get_history () const -> const sample_data &
 
void add_sample (float t)
 
void reset ()
 

Public Attributes

float time_since_swap = 0.0f
 
uint32_t samples_since_swap = 0
 
sample_data history
 

Detailed Description

Per-name aggregate timing data with rolling history.

Definition at line 244 of file profiler.h.

Constructor & Destructor Documentation

◆ per_frame_data() [1/2]

unravel::performance_profiler::per_frame_data::per_frame_data ( )
default

◆ per_frame_data() [2/2]

unravel::performance_profiler::per_frame_data::per_frame_data ( float t)
inline

Definition at line 251 of file profiler.h.

Member Function Documentation

◆ add_sample()

void unravel::performance_profiler::per_frame_data::add_sample ( float t)
inline

Definition at line 271 of file profiler.h.

◆ get_avg()

auto unravel::performance_profiler::per_frame_data::get_avg ( ) const -> float
inline

Definition at line 266 of file profiler.h.

◆ get_history()

auto unravel::performance_profiler::per_frame_data::get_history ( ) const -> const sample_data&
inline

Definition at line 269 of file profiler.h.

◆ get_max()

auto unravel::performance_profiler::per_frame_data::get_max ( ) const -> float
inline

Definition at line 268 of file profiler.h.

◆ get_min()

auto unravel::performance_profiler::per_frame_data::get_min ( ) const -> float
inline

Definition at line 267 of file profiler.h.

◆ get_samples_since_swap()

auto unravel::performance_profiler::per_frame_data::get_samples_since_swap ( ) const -> uint32_t
inline

Definition at line 265 of file profiler.h.

◆ get_time_since_swap()

auto unravel::performance_profiler::per_frame_data::get_time_since_swap ( ) const -> float
inline

Definition at line 264 of file profiler.h.

◆ operator float()

unravel::performance_profiler::per_frame_data::operator float ( ) const
inline

Definition at line 256 of file profiler.h.

◆ operator+=()

auto unravel::performance_profiler::per_frame_data::operator+= ( float t) -> per_frame_data&
inline

Definition at line 258 of file profiler.h.

◆ reset()

void unravel::performance_profiler::per_frame_data::reset ( )
inline

Definition at line 277 of file profiler.h.

Member Data Documentation

◆ history

sample_data unravel::performance_profiler::per_frame_data::history

Definition at line 248 of file profiler.h.

◆ samples_since_swap

uint32_t unravel::performance_profiler::per_frame_data::samples_since_swap = 0

Definition at line 247 of file profiler.h.

◆ time_since_swap

float unravel::performance_profiler::per_frame_data::time_since_swap = 0.0f

Definition at line 246 of file profiler.h.


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