blob: 5876df74cc56433ef612df55f1386a87b53e0f4d [file] [log] [blame]
if (platformSupportsSamplingProfiler()) {
load("./sampling-profiler/samplingProfiler.js");
function foo(f) {
f();
}
function baz() {
foo(function() {
let x = 0;
let o = {};
for (let i = 0; i < 5000; i++) {
o[i] = i;
i++;
i--;
x++;
}
});
}
runTest(baz, ["(anonymous function)", "foo", "baz"]);
}