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

Unified Diff: Source/wtf/InstanceCounter.cpp

Issue 1203493004: [tracing] Adding class-wise memory statistics to blink gc memory dumps (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove useless check. Created 5 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/wtf/InstanceCounter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/InstanceCounter.cpp
diff --git a/Source/wtf/InstanceCounter.cpp b/Source/wtf/InstanceCounter.cpp
index dbaee9eb7f2bcad761cb554c0f651d3630bc0e6f..f3d0c3a8416fb36f3803dad60e557fada4515ced 100644
--- a/Source/wtf/InstanceCounter.cpp
+++ b/Source/wtf/InstanceCounter.cpp
@@ -35,8 +35,6 @@
namespace WTF {
-#if ENABLE(INSTANCE_COUNTER) || ENABLE(GC_PROFILING)
-
#if COMPILER(CLANG)
const size_t extractNameFunctionPrefixLength = sizeof("const char *WTF::extractNameFunction() [T = ") - 1;
const size_t extractNameFunctionPostfixLength = sizeof("]") - 1;
@@ -65,6 +63,8 @@ String extractTypeNameFromFunctionName(const char* funcName)
#endif
}
+#if ENABLE(INSTANCE_COUNTER) || ENABLE(GC_PROFILING)
+
class InstanceCounter {
public:
void incrementInstanceCount(const String& instanceName, void* ptr);
« no previous file with comments | « Source/wtf/InstanceCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698