( name: string, category: string, args?: Record<string, unknown>, )
| 838 | * Emit an instant event (marker) |
| 839 | */ |
| 840 | export function emitPerfettoInstant( |
| 841 | name: string, |
| 842 | category: string, |
| 843 | args?: Record<string, unknown>, |
| 844 | ): void { |
| 845 | if (!isEnabled) return |
| 846 | |
| 847 | const agentInfo = getCurrentAgentInfo() |
| 848 | |
| 849 | events.push({ |
| 850 | name, |
| 851 | cat: category, |
| 852 | ph: 'i', |
| 853 | ts: getTimestamp(), |
| 854 | pid: agentInfo.processId, |
| 855 | tid: agentInfo.threadId, |
| 856 | args, |
| 857 | }) |
| 858 | } |
| 859 | |
| 860 | /** |
| 861 | * Emit a counter event for tracking metrics over time |
nothing calls this directly
no test coverage detected