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

Unified Diff: Source/core/inspector/InstanceCounters.h

Issue 1308273007: Make classes and structures in core/inspector fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/inspector/InspectorTraceEvents.h ('k') | Source/core/inspector/LayoutEditor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InstanceCounters.h
diff --git a/Source/core/inspector/InstanceCounters.h b/Source/core/inspector/InstanceCounters.h
index 5c4ddfae645121e9ef7df6ca03714167cda272da..d627272e057f0da9b8613aa4c80f09b309d084f6 100644
--- a/Source/core/inspector/InstanceCounters.h
+++ b/Source/core/inspector/InstanceCounters.h
@@ -32,7 +32,7 @@
#define InstanceCounters_h
#include "core/CoreExport.h"
-#include "wtf/FastAllocBase.h"
+#include "wtf/Allocator.h"
#if ENABLE(ASSERT)
#include "wtf/MainThread.h"
@@ -41,6 +41,7 @@
namespace blink {
class InstanceCounters {
+ STATIC_ONLY(InstanceCounters);
public:
enum CounterType {
ActiveDOMObjectCounter,
@@ -73,8 +74,6 @@ public:
CORE_EXPORT static int counterValue(CounterType);
private:
- InstanceCounters();
-
CORE_EXPORT static int s_counters[CounterTypeLength];
};
« no previous file with comments | « Source/core/inspector/InspectorTraceEvents.h ('k') | Source/core/inspector/LayoutEditor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698