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

A single profiling event captured during a frame. More...

#include <profiler.h>

Public Member Functions

auto name () const -> const char *
 

Public Attributes

const char * name_literal {}
 String literal from native scopes; null if the label is stored in name_owned.
 
std::string name_owned {}
 
int64_t start_ns {0}
 
int64_t end_ns {0}
 
int64_t cpu_start_ns {0}
 
int64_t cpu_end_ns {0}
 
uint16_t depth {0}
 
uint16_t thread_index {0}
 
uint32_t color_hash {0}
 

Detailed Description

A single profiling event captured during a frame.

Definition at line 140 of file profiler.h.

Member Function Documentation

◆ name()

auto unravel::profile_event::name ( ) const -> const char*
inlinenodiscard

Definition at line 153 of file profiler.h.

Member Data Documentation

◆ color_hash

uint32_t unravel::profile_event::color_hash {0}

Definition at line 151 of file profiler.h.

◆ cpu_end_ns

int64_t unravel::profile_event::cpu_end_ns {0}

Definition at line 148 of file profiler.h.

◆ cpu_start_ns

int64_t unravel::profile_event::cpu_start_ns {0}

Definition at line 147 of file profiler.h.

◆ depth

uint16_t unravel::profile_event::depth {0}

Definition at line 149 of file profiler.h.

◆ end_ns

int64_t unravel::profile_event::end_ns {0}

Definition at line 146 of file profiler.h.

◆ name_literal

const char* unravel::profile_event::name_literal {}

String literal from native scopes; null if the label is stored in name_owned.

Definition at line 143 of file profiler.h.

◆ name_owned

std::string unravel::profile_event::name_owned {}

Definition at line 144 of file profiler.h.

◆ start_ns

int64_t unravel::profile_event::start_ns {0}

Definition at line 145 of file profiler.h.

◆ thread_index

uint16_t unravel::profile_event::thread_index {0}

Definition at line 150 of file profiler.h.


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