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¶
function ~PjrtProfiler¶
function PjrtProfiler¶
function operator=¶
function Supported¶
Whether the loaded plugin exposes a usable profiler extension.
function Start¶
Begin a profiling session; false when unsupported or already running.
function Stop¶
End the session; false when unsupported or not running.
function CollectData¶
Serialized XPlane protobuf for the last session (empty when unsupported or failed).
function Dump¶
Write collect_data() to path; false when unsupported, failed, or empty.