Skip to main content

ClikaRT::ProfileSession::CaptureScope

class

Header: ClikaRT/profiler/profiler.h

RAII capture handle. While alive, work on the constructing thread (and its live streams) is profiled into the parent session. End the capture by letting this go out of scope. Move-only; keep it alive for the region you want timed.

Member functions

CaptureScope()

CaptureScope(CaptureScope&&) noexcept

Move-only: transfers the capture.

Declared in ClikaRT/profiler/profiler.h, line 133

operator=()

CaptureScope& operator=(CaptureScope&&) noexcept

Move-assign: transfers the capture.

Declared in ClikaRT/profiler/profiler.h, line 135

~CaptureScope()

~CaptureScope()

Ends the capture (RAII exit).

Declared in ClikaRT/profiler/profiler.h, line 137

add_marker()

void add_marker(std::string_view label)

Drop a named marker into the timeline at this point (renders as an instant event in the Chrome/Perfetto trace). label is copied.

Declared in ClikaRT/profiler/profiler.h, line 141