File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -353,9 +353,9 @@ CP_PROFILING=true DEBUG=true CP_PROFILER_MEASURE_NAME=my-measure npm run dev
353353The NodeJSProfiler inherits all API methods from the base Profiler class and adds additional methods for queue management and WAL lifecycle control.
354354
355355| Method | Description |
356- | ------------------------------------ | ---------------------------------------------------------------------------------------- | --------- | ----------- |
356+ | ------------------------------------ | ---------------------------------------------------------------------------------------- |
357357| ` stats ` | Returns comprehensive queue statistics and profiling state for monitoring and debugging. |
358- | ` state ` | Returns current profiler state (`'idle' | 'running' | 'closed'`). |
358+ | ` state ` | Returns current profiler state (` 'idle' \| 'running' \| 'closed' ` ). |
359359| ` close() ` | Closes profiler and releases resources. Idempotent, safe for exit handlers. |
360360| ` flush() ` | Forces immediate writing of all queued performance entries to the WAL. |
361361| ` setEnabled(enabled: boolean): void ` | Controls profiling at runtime with automatic WAL/observer lifecycle management. |
You can’t perform that action at this time.
0 commit comments