OpenTTD Source 20250205-master-gfd85ab1e2c
TicToc::State Struct Reference

Persistent state for TicToc profiling. More...

#include <debug.h>

Public Member Functions

constexpr State (std::string_view name, uint32_t max_count)
 

Data Fields

const std::string_view name
 
const uint32_t max_count
 
uint32_t count = 0
 
uint64_t chrono_sum = 0
 

Detailed Description

Persistent state for TicToc profiling.

Definition at line 70 of file debug.h.

Constructor & Destructor Documentation

◆ State()

constexpr TicToc::State::State ( std::string_view  name,
uint32_t  max_count 
)
inlineconstexpr

Definition at line 76 of file debug.h.

Field Documentation

◆ chrono_sum

uint64_t TicToc::State::chrono_sum = 0

Definition at line 74 of file debug.h.

◆ count

uint32_t TicToc::State::count = 0

Definition at line 73 of file debug.h.

◆ max_count

const uint32_t TicToc::State::max_count

Definition at line 72 of file debug.h.

◆ name

const std::string_view TicToc::State::name

Definition at line 71 of file debug.h.


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