mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 12:29:07 +00:00
Implement the Chrome DevTools Protocol Profiler domain for node:inspector: - Profiler.enable/disable - Enable or disable the profiler - Profiler.start/stop - Start and stop CPU profiling - Profiler.setSamplingInterval - Configure sampling interval in microseconds Returns CPU profiles in Chrome DevTools JSON format, compatible with VS Code, Chrome DevTools, and speedscope. Also fixes bun:jsc profile() to use pause() instead of shutdown(), allowing the profiler to be restarted within the same process.