JavaScript-based JavaScript profiler