Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1425)

Unified Diff: Source/modules/webaudio/AudioNode.h

Issue 450183002: Add instance counters of Resource and AudioNode, and expose them via WebLeakDetector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/fetch/Resource.cpp ('k') | Source/modules/webaudio/AudioNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioNode.h
diff --git a/Source/modules/webaudio/AudioNode.h b/Source/modules/webaudio/AudioNode.h
index e487561de9a79ca473cbffbde9cadb270b6090cf..fc67044cf42d9c431d917dc1872598922572b34b 100644
--- a/Source/modules/webaudio/AudioNode.h
+++ b/Source/modules/webaudio/AudioNode.h
@@ -60,6 +60,7 @@ public:
// dispose() is called just before the destructor. This must be called in
// the main thread, and while the graph lock is held.
virtual void dispose();
+ static unsigned instanceCount() { return s_instanceCount; }
AudioContext* context() { return m_context.get(); }
const AudioContext* context() const { return m_context.get(); }
@@ -231,6 +232,7 @@ private:
static bool s_isNodeCountInitialized;
static int s_nodeCount[NodeTypeEnd];
#endif
+ static unsigned s_instanceCount;
#if !ENABLE(OILPAN)
virtual void refEventTarget() OVERRIDE FINAL { ref(); }
« no previous file with comments | « Source/core/fetch/Resource.cpp ('k') | Source/modules/webaudio/AudioNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698