| if (platformSupportsSamplingProfiler()) { | |
| load("./sampling-profiler/samplingProfiler.js", "caller relative"); | |
| 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, ["", "foo", "baz"]); | |
| } |