v8.startCpuProfile(options?): SyncCPUProfileHandle
Attributes
options:
ObjectReturns:
SyncCPUProfileHandleStarting a CPU profile then return a SyncCPUProfileHandle object.
This API supports using syntax.
const handle = v8.startCpuProfile({ sampleInterval: 1, maxBufferSize: 10_000 }); const profile = handle.stop(); console.log(profile);