Bug 129286 - Prune dead code for Web Inspector memory instrumentation.
Summary: Prune dead code for Web Inspector memory instrumentation.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-24 20:10 PST by Andreas Kling
Modified: 2014-02-25 10:54 PST (History)
11 users (show)

See Also:


Attachments
Patch (23.16 KB, patch)
2014-02-24 20:11 PST, Andreas Kling
no flags Details | Formatted Diff | Diff
Patch (27.59 KB, patch)
2014-02-24 20:48 PST, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2014-02-24 20:10:35 PST
Prune dead code for Web Inspector memory instrumentation.
Comment 1 Andreas Kling 2014-02-24 20:11:54 PST
Created attachment 225117 [details]
Patch
Comment 2 Andreas Kling 2014-02-24 20:48:40 PST
Created attachment 225119 [details]
Patch
Comment 3 WebKit Commit Bot 2014-02-25 00:13:59 PST
Comment on attachment 225119 [details]
Patch

Clearing flags on attachment: 225119

Committed r164637: <http://trac.webkit.org/changeset/164637>
Comment 4 WebKit Commit Bot 2014-02-25 00:14:03 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Joseph Pecoraro 2014-02-25 10:41:25 PST
Comment on attachment 225119 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=225119&action=review

> Source/WebCore/inspector/InspectorMemoryAgent.cpp:-82
> -    *nodes = InspectorCounters::counterValue(InspectorCounters::NodeCounter);

Are InspectorCounters used anywhere now? Can they be removed?

> Source/WebCore/inspector/InspectorMemoryAgent.cpp:-83
> -    *jsEventListeners = ThreadLocalInspectorCounters::current().counterValue(ThreadLocalInspectorCounters::JSEventListenerCounter);

Same with ThreadLocalInspectorCounters.
Comment 6 Andreas Kling 2014-02-25 10:54:06 PST
(In reply to comment #5)
> (From update of attachment 225119 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=225119&action=review
> 
> > Source/WebCore/inspector/InspectorMemoryAgent.cpp:-82
> > -    *nodes = InspectorCounters::counterValue(InspectorCounters::NodeCounter);
> 
> Are InspectorCounters used anywhere now? Can they be removed?

They are still used to implement some window.internals testing API. It should be easy enough to replace it with something simpler.

> 
> > Source/WebCore/inspector/InspectorMemoryAgent.cpp:-83
> > -    *jsEventListeners = ThreadLocalInspectorCounters::current().counterValue(ThreadLocalInspectorCounters::JSEventListenerCounter);
> 
> Same with ThreadLocalInspectorCounters.

Hm. This one might come off right now!