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

Fixed-size buffer of profile events for one frame on one thread. More...

#include <profiler.h>

Public Member Functions

void reset ()
 

Public Attributes

std::array< profile_event, max_eventsevents {}
 
uint32_t count {0}
 
uint16_t depth {0}
 
uint16_t thread_index {0}
 

Static Public Attributes

static constexpr uint32_t max_events = 32768
 

Detailed Description

Fixed-size buffer of profile events for one frame on one thread.

Definition at line 160 of file profiler.h.

Member Function Documentation

◆ reset()

void unravel::thread_profile_buffer::reset ( )
inline

Definition at line 169 of file profiler.h.

Member Data Documentation

◆ count

uint32_t unravel::thread_profile_buffer::count {0}

Definition at line 165 of file profiler.h.

◆ depth

uint16_t unravel::thread_profile_buffer::depth {0}

Definition at line 166 of file profiler.h.

◆ events

std::array<profile_event, max_events> unravel::thread_profile_buffer::events {}

Definition at line 164 of file profiler.h.

◆ max_events

uint32_t unravel::thread_profile_buffer::max_events = 32768
staticconstexpr

Definition at line 162 of file profiler.h.

◆ thread_index

uint16_t unravel::thread_profile_buffer::thread_index {0}

Definition at line 167 of file profiler.h.


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