Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
helios::profile::FlamegraphBackendConfig Struct Reference

Configuration for the FlamegraphBackend. More...

#include <flamegraph.hpp>

Public Attributes

std::filesystem::path output_path = "helios_flamegraph.json"
 File path where the JSON trace is written.
size_t flush_threshold = kDefaultFlushThreshold

Static Public Attributes

static constexpr size_t kDefaultFlushThreshold = 1024
 Default number of events accumulated before flushing.

Detailed Description

Configuration for the FlamegraphBackend.

Controls the output destination and flushing behavior of the Chrome Tracing JSON backend.

Definition at line 28 of file flamegraph.hpp.

Member Data Documentation

◆ flush_threshold

size_t helios::profile::FlamegraphBackendConfig::flush_threshold = kDefaultFlushThreshold

Number of events before flushing to disk. A threshold of 0 holds all events in memory until shutdown.

Definition at line 37 of file flamegraph.hpp.

◆ kDefaultFlushThreshold

size_t helios::profile::FlamegraphBackendConfig::kDefaultFlushThreshold = 1024
staticconstexpr

Default number of events accumulated before flushing.

Definition at line 30 of file flamegraph.hpp.

◆ output_path

std::filesystem::path helios::profile::FlamegraphBackendConfig::output_path = "helios_flamegraph.json"

File path where the JSON trace is written.

Definition at line 33 of file flamegraph.hpp.