Skip to content

tenzr::PjrtProfiler

Drives the optional PJRT profiler extension and captures a serialized XPlane profile.

#include <pjrt_profiler.h>

Public Functions

Name
PjrtProfiler()
~PjrtProfiler()
PjrtProfiler(const PjrtProfiler & ) =delete
PjrtProfiler & operator=(const PjrtProfiler & ) =delete
bool Supported() const
Whether the loaded plugin exposes a usable profiler extension.
bool Start()
Begin a profiling session; false when unsupported or already running.
bool Stop()
End the session; false when unsupported or not running.
std::vector< uint8_t > CollectData() const
Serialized XPlane protobuf for the last session (empty when unsupported or failed).
bool Dump(const std::string & path) const
Write collect_data() to path; false when unsupported, failed, or empty.

Public Functions Documentation

function PjrtProfiler

PjrtProfiler()

function ~PjrtProfiler

~PjrtProfiler()

function PjrtProfiler

PjrtProfiler(
    const PjrtProfiler & 
) =delete

function operator=

PjrtProfiler & operator=(
    const PjrtProfiler & 
) =delete

function Supported

bool Supported() const

Whether the loaded plugin exposes a usable profiler extension.

function Start

bool Start()

Begin a profiling session; false when unsupported or already running.

function Stop

bool Stop()

End the session; false when unsupported or not running.

function CollectData

std::vector< uint8_t > CollectData() const

Serialized XPlane protobuf for the last session (empty when unsupported or failed).

function Dump

bool Dump(
    const std::string & path
) const

Write collect_data() to path; false when unsupported, failed, or empty.