2 Assert
.ok(!Services
.profiler
.IsActive());
4 Services
.profiler
.StartProfiler(100, 10, ["js"]);
5 // The function is entered with the profiler enabled
7 Services
.profiler
.StopProfiler();
9 // eslint-disable-next-line no-empty
10 while (--n
) {} // OSR happens here with the profiler disabled.
11 // An assertion will fail when this function returns, if the
12 // profiler stack was misbalanced.