This is similar to "Bug 146115: Web Inspector: [Meta] Visualize code hotness using basic block execution counts", with exception of code being highlighted based a basic block execution *duration*.
<rdar://problem/28370977>
Created attachment 290027 [details] WIP This is a very early stage WIP. All method names are likely to change. I'm trying to gauge how useful a heatmap visualization is (say, as opposed to "perf gutter" in Chrome DevTools). How to see the heatmap: 1. Record a Timeline. 2. Open a JS resource (that has function calls captured in the timeline recording). Once timeline is recorded, there's currently no way to hide the heatmap. I'll add a button before to the resource toolbar (before the [T] icon) to hide the heatmap.
<rdar://problem/12869714>