How do I profile javascript in Safari 9?

Chrome and Firefox have useful and robust performance profiling tools. I've been looking for something similar in Safari, but I haven't been able to find it.


Some older documentation references the type of functionality for which I'm looking:

https://developer.apple.com/library/safari/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Instruments/Instruments.html#//apple_ref/doc/uid/TP40007874-CH4-SW6

However, when I look in the timelines tool in Safari 9, I don't see anything that looks like a javascript profiler.

Does anyone know if this functionality is still present in Safari? And, if so, how does one utilize it?

The same problem, why???

The profiling data has been rolled into the 'JavaScript & Events' section of the 'Timelines' tab of the Web Inspector. Now when you record timeline data, the profiling data is also captured automatically. You can find the individual profiles under the 'Script Evaluated' events in the timeline.


I was looking for the answer to this exact question, and found it by scouring the WWDC video archive. Sure enough, there's a session from 2014 showing this new layout for the Web Inspector, around 36:00


https://developer.apple.com/videos/play/wwdc2014/512/


However, the functionality of immediately seeing a % of time spent is not present, as far as I can tell.

How do I profile javascript in Safari 9?
 
 
Q