v8.startCpuProfile()
- 返回:SyncCPUProfileHandle
启动 CPU 分析,然后返回一个 SyncCPUProfileHandle 对象。此 API 支持 using 语法。
【Starting a CPU profile then return a SyncCPUProfileHandle object.
This API supports using syntax.】
const handle = v8.startCpuProfile();
const profile = handle.stop();
console.log(profile);