RESOLVED FIXED 153499
Web Inspector: console.profile should use the new Sampling Profiler
https://bugs.webkit.org/show_bug.cgi?id=153499
Summary Web Inspector: console.profile should use the new Sampling Profiler
Joseph Pecoraro
Reported 2016-01-26 12:26:46 PST
* SUMMARY console.profile should use the new Sampling Profiler. * NOTES - Currently it uses the LegacyProfiler. It should work with the new Sampling Profiler. - How that looks is yet to be determined. - Should it enable/disable some set of instruments the frontend has told the backend about? - Should it just start/stop the ScriptProfiler? which will send profiles to the frontend when done. - Should it send sample payload to the frontend on console.profileEnd?
Attachments
[PATCH] Proposed Fix (43.03 KB, patch)
2016-06-14 16:02 PDT, Joseph Pecoraro
joepeck: commit-queue-
[PATCH] Proposed Fix (42.80 KB, patch)
2016-06-14 19:57 PDT, Joseph Pecoraro
timothy: review+
[PATCH] For Landing (48.27 KB, patch)
2016-06-16 18:57 PDT, Joseph Pecoraro
no flags
Radar WebKit Bug Importer
Comment 1 2016-01-26 12:27:06 PST
Joseph Pecoraro
Comment 2 2016-05-31 22:59:33 PDT
I have this working now that we've removed the LegacyProfiler. It takes advantage of the frontend informing the backend of the enabled Instruments (which was added for auto record on page navigations). I just need to clean the patches up, test, and justify the policy choices I made.
Joseph Pecoraro
Comment 3 2016-06-14 15:51:37 PDT
*** Bug 136466 has been marked as a duplicate of this bug. ***
Joseph Pecoraro
Comment 4 2016-06-14 16:02:40 PDT
Created attachment 281294 [details] [PATCH] Proposed Fix Depends on bug 158762.
Joseph Pecoraro
Comment 5 2016-06-14 19:57:46 PDT
Created attachment 281316 [details] [PATCH] Proposed Fix
Timothy Hatcher
Comment 6 2016-06-16 14:19:15 PDT
Comment on attachment 281316 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=281316&action=review Very clean! > Source/JavaScriptCore/inspector/agents/InspectorScriptProfilerAgent.cpp:223 > +} > +void InspectorScriptProfilerAgent::programmaticCaptureStopped() Newline. > Source/WebCore/inspector/InspectorTimelineAgent.cpp:249 > + // Allow duplicate unnamed profiles. Disallow duplicate named profiles. > + if (!title.isEmpty()) { Sad this needs duplicated.
Joseph Pecoraro
Comment 7 2016-06-16 18:57:14 PDT
Created attachment 281520 [details] [PATCH] For Landing
WebKit Commit Bot
Comment 8 2016-06-16 19:26:48 PDT
Comment on attachment 281520 [details] [PATCH] For Landing Clearing flags on attachment: 281520 Committed r202152: <http://trac.webkit.org/changeset/202152>
Alexey Proskuryakov
Comment 9 2016-06-17 20:26:49 PDT
Alexey Proskuryakov
Comment 10 2016-06-17 20:34:22 PDT
Joseph Pecoraro
Comment 11 2016-06-20 12:09:29 PDT
(In reply to comment #9) > The new test is very unstable, timing out very frequently: This appears to be the same issue that affects all inspector tests. Locally, I ran the test, and the directory 400 times in Release and Debug mode without issue. I suggest treating this test the same [ Pass Timeout ] until we have time to investigate the systemic inspector test issue. I filed bug 158948 for these specific timeouts.
Joseph Pecoraro
Comment 12 2016-06-20 12:13:12 PDT
Note You need to log in before you can comment on or make changes to this bug.