Skip to main content

Neuralyzer::Plots::PlotZoomProfile

Neuralyzer::Plots::PlotZoomProfile

Runtime-gated zoom/paint profiler (singleton).

#include <PlotZoomProfile.hpp>

Public Functions

Name
bool enabled()
True when NEURALYZER_PLOT_ZOOM_PROFILE is 1 or true.
PlotZoomProfile & instance()
Profiler singleton.
void beginWheel()
Begin profiling a wheel interaction (increments generation).
void endWheelSync()
End synchronous wheel path and log wheel_sync_us.
void beginPaintGL()
Begin paintGL timing for the pending wheel generation.
void endPaintGL(bool rebuilt_scene)
End paintGL timing and log paint_gl_us and rebuild.
void beginAxisPaint(std::string_view axis_label)
Begin axis paintEvent timing.
void endAxisPaint()
End axis paintEvent timing and log axis_paint_us.
std::uint64_t pendingGeneration() const
Generation counter for the most recent wheel interaction.

Public Functions Documentation

function enabled

static bool enabled()

True when NEURALYZER_PLOT_ZOOM_PROFILE is 1 or true.

function instance

static PlotZoomProfile & instance()

Profiler singleton.

function beginWheel

void beginWheel()

Begin profiling a wheel interaction (increments generation).

function endWheelSync

void endWheelSync()

End synchronous wheel path and log wheel_sync_us.

function beginPaintGL

void beginPaintGL()

Begin paintGL timing for the pending wheel generation.

function endPaintGL

void endPaintGL(
    bool rebuilt_scene
)

End paintGL timing and log paint_gl_us and rebuild.

Parameters:

  • rebuilt_scene True when rebuildScene() ran during this frame.

function beginAxisPaint

void beginAxisPaint(
    std::string_view axis_label
)

Begin axis paintEvent timing.

Parameters:

  • axis_label Short label such as “horizontal” or “vertical”.

function endAxisPaint

void endAxisPaint()

End axis paintEvent timing and log axis_paint_us.

function pendingGeneration

inline std::uint64_t pendingGeneration() const

Generation counter for the most recent wheel interaction.


Updated on 2026-11-13 at 20:25:41 +0000