Bun 实现了 V8 的堆快照 API,允许你在运行时创建堆快照。这有助于调试你的 JavaScript/TypeScript 应用中的内存泄漏。Documentation Index
Fetch the complete documentation index at: https://bun.zhcndoc.com/llms.txt
Use this file to discover all available pages before exploring further.
在 Chrome DevTools 中检查内存
在 Chrome DevTools 中查看 V8 堆快照:- 打开 Chrome DevTools(F12 或右键点击选择“检查”)
- 进入“Memory”标签页
- 点击“Load”按钮(文件夹图标)
- 选择你的
.heapsnapshot文件
