(recordId: bigint)
| 470 | } |
| 471 | |
| 472 | async function getPayload<T extends DebugPayload>(recordId: bigint): Promise<T | null> { |
| 473 | const bytes = await backend.debugGetPayload(recordId); |
| 474 | if (!bytes) { |
| 475 | return null; |
| 476 | } |
| 477 | |
| 478 | // We don't know the category here, so try to parse based on size |
| 479 | // This is a best-effort attempt |
| 480 | const result = parseFrameRecord(bytes); |
| 481 | if (result.ok) { |
| 482 | return result.value as T; |
| 483 | } |
| 484 | |
| 485 | return null; |
| 486 | } |
| 487 | |
| 488 | async function getStats(): Promise<DebugStats> { |
| 489 | return backend.debugGetStats(); |
nothing calls this directly
no test coverage detected