Profiling JavaScript Code
What type of profiling scenario is this code designed for?
const profiler = await Session.CPUProfiler;
await profiler.start();
for (const test of loadTests()) {
await test.run();
}
const profile = await profiler.stop();
const profiler = await Session.CPUProfiler;
await profiler.start();
for (const test of loadTests()) {
await test.run();
}
const profile = await profiler.stop();