v8.startCpuProfile()
新增于: v24.12.0
-
返回:SyncCPUProfileHandle
\Returns: 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);