Bug 139675

Summary: Web Inspector: timeline recording started from console.profile(name) does not use suggested name
Product: WebKit Reporter: Brian Burg <burg>
Component: Web InspectorAssignee: Matt Baker <mattbaker>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: graouts, irae, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Description Brian Burg 2014-12-16 00:32:23 PST
It used to, I think...
Comment 1 Radar WebKit Bug Importer 2014-12-17 11:23:53 PST
<rdar://problem/19281556>
Comment 2 Iraê 2015-09-01 16:28:55 PDT
This issue is on an interesting state. It will start recording profiles and stop, it will show the name of the profile, but you cannot record multiple profiles and compare between them. The current state (Safari 9 beta on El Captain) is only working as a trigger to the "timelines" tab start and stop button.

I did not had a chance to try putting this in the middle of the code and trying in the middle of a page load process, but would be interesting to find out all implications.

This API is still useful and works well on other browsers, although MDN says it's non-standard.

https://developer.mozilla.org/en-US/docs/Web/API/Console/profileEnd
Comment 3 Timothy Hatcher 2015-09-01 18:15:04 PDT
If it is showing the name, then this isn't a bug anymore.

The other issues you mention should be filed as separate bugs. Yes, console.profile will work in the middle of code and do a full Timeline recording for that section of code.