Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::canvas::FontFlightRecorder Class Reference

#include <font_flight_recorder.hpp>

Public Member Functions

void record_fallback (const FallbackTraceRecord &record)
 Append a resolution event.
std::vector< FallbackTraceRecord > drain ()
 Snapshot + clear the buffered records. Returns oldest-first.
std::vector< FallbackTraceRecord > snapshot () const
 Snapshot only (does not clear). Returns oldest-first.
void clear ()
 Drop all buffered records.
void set_capacity (std::size_t capacity)
 Set the ring-buffer capacity.
std::size_t capacity () const noexcept
std::size_t size () const noexcept
 Number of records currently buffered.

Static Public Member Functions

static FontFlightRecorder & instance ()

Member Function Documentation

◆ capacity()

std::size_t pulp::canvas::FontFlightRecorder::capacity ( ) const
noexcept

◆ clear()

void pulp::canvas::FontFlightRecorder::clear ( )

Drop all buffered records.

◆ drain()

std::vector< FallbackTraceRecord > pulp::canvas::FontFlightRecorder::drain ( )

Snapshot + clear the buffered records. Returns oldest-first.

◆ instance()

FontFlightRecorder & pulp::canvas::FontFlightRecorder::instance ( )
static

◆ record_fallback()

void pulp::canvas::FontFlightRecorder::record_fallback ( const FallbackTraceRecord & record)

Append a resolution event.

No-op when capacity() == 0. When the buffer is full, the oldest record is dropped to make room.

◆ set_capacity()

void pulp::canvas::FontFlightRecorder::set_capacity ( std::size_t capacity)

Set the ring-buffer capacity.

0 disables recording. Default 1024. Shrinking drops the oldest entries.

◆ size()

std::size_t pulp::canvas::FontFlightRecorder::size ( ) const
noexcept

Number of records currently buffered.

◆ snapshot()

std::vector< FallbackTraceRecord > pulp::canvas::FontFlightRecorder::snapshot ( ) const

Snapshot only (does not clear). Returns oldest-first.


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