Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::core::TraceEvent Struct Reference

A scope timed while tracing (Profiler::start_trace()), for write_chrome_trace(). More...

#include <aegis2d/core/profiler.hpp>

Public Attributes

std::string name {}
 Name of the scope, or "frame" for a whole frame.
 
double start_us = 0.0
 When it started, in microseconds of the profiler's clock (the same for every profiler of the process, so that threads line up).
 
double duration_us = 0.0
 How long it took, in microseconds.
 

Detailed Description

A scope timed while tracing (Profiler::start_trace()), for write_chrome_trace().

Member Data Documentation

◆ duration_us

double aegis2d::core::TraceEvent::duration_us = 0.0

How long it took, in microseconds.

◆ name

std::string aegis2d::core::TraceEvent::name {}

Name of the scope, or "frame" for a whole frame.

◆ start_us

double aegis2d::core::TraceEvent::start_us = 0.0

When it started, in microseconds of the profiler's clock (the same for every profiler of the process, so that threads line up).


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