telemetryJson static method
Telemetry snapshot as a JSON array of inference metrics (each optionally
carrying fallback diagnostics). Returns null when the engine handle is
invalid or nothing has been recorded. The native buffer is freed here.
Implementation
static String? telemetryJson(SyniEngineNative engine) {
initialize();
final ptr = _telemetryJson!(engine);
if (ptr == nullptr) return null;
final s = ptr.cast<Utf8>().toDartString();
_stringFree!(ptr);
return s;
}