startCpuProfile

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);

Since

v24.12.0