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

Time a named part of a frame took, as Profiler::last_frame() gives it. More...

#include <aegis2d/core/profiler.hpp>

Public Attributes

std::string name {}
 Name of the scope, such as "update" or a system's name.
 
std::size_t depth = 0
 How deep it is: 0 for a phase of the frame, 1 for a scope inside one...
 
double ms = 0.0
 Time spent in it during the frame, every call added, in milliseconds.
 
std::uint32_t calls = 0
 How many times it was entered during the frame (the fixed steps of a frame run the same systems several times).
 

Detailed Description

Time a named part of a frame took, as Profiler::last_frame() gives it.

Member Data Documentation

◆ calls

std::uint32_t aegis2d::core::ProfileEntry::calls = 0

How many times it was entered during the frame (the fixed steps of a frame run the same systems several times).

◆ depth

std::size_t aegis2d::core::ProfileEntry::depth = 0

How deep it is: 0 for a phase of the frame, 1 for a scope inside one...

◆ ms

double aegis2d::core::ProfileEntry::ms = 0.0

Time spent in it during the frame, every call added, in milliseconds.

◆ name

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

Name of the scope, such as "update" or a system's name.


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