WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
163408
Web Inspector: Call RuntimeAgent.disableTypeProfiler when Type Profiler is turned off
https://bugs.webkit.org/show_bug.cgi?id=163408
Summary
Web Inspector: Call RuntimeAgent.disableTypeProfiler when Type Profiler is tu...
Nikita Vasilyev
Reported
2016-10-13 15:18:33 PDT
Disabling Type Profiler by clicking the [T] button should signal the backend to stop collecting the data by calling RuntimeAgent.disableTypeProfiler method. RuntimeAgent.disableTypeProfiler is currently unused.
Attachments
Patch
(2.15 KB, patch)
2016-11-11 12:03 PST
,
Nikita Vasilyev
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-10-13 15:18:53 PDT
<
rdar://problem/28764269
>
Nikita Vasilyev
Comment 2
2016-11-10 11:38:16 PST
There's a comment in _setTypeTokenAnnotatorEnabledState method: // Because we disable type profiling when exiting the inspector, there is no need to call // RuntimeAgent.disableTypeProfiler() here. If we were to call it here, JavaScriptCore would // compile out all the necessary type profiling information, so if a user were to quickly press then // unpress the type profiling button, we wouldn't be able to re-show type information which would // provide a confusing user experience. Sometimes I disable Type Profiler to read code with less distractions and then turn it back on. Unlike Code Coverage, enabling Type Profiler adds tokens that take up space. I think it makes a lot of sense to call RuntimeAgent.disableControlFlowProfiler() when turning off Code Coverage by clicking [C] icon. Disabling Type Profiler, however, has drawbacks. Any opinions?
Nikita Vasilyev
Comment 3
2016-11-11 12:03:49 PST
Created
attachment 294517
[details]
Patch Here's a patch that makes Type Profiler consistent with Code Coverage.
WebKit Commit Bot
Comment 4
2016-11-11 12:42:03 PST
Comment on
attachment 294517
[details]
Patch Clearing flags on attachment: 294517 Committed
r208604
: <
http://trac.webkit.org/changeset/208604
>
WebKit Commit Bot
Comment 5
2016-11-11 12:42:07 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug