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

Side by Side Diff: third_party/WebKit/Source/wtf/InstanceCounter.cpp

Issue 1714523006: Refactoring: Remove DETAILED_MEMORY_INFRA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove spamming info Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/InstanceCounter.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 16 matching lines...) Expand all
27 27
28 #include "wtf/HashMap.h" 28 #include "wtf/HashMap.h"
29 #include "wtf/StdLibExtras.h" 29 #include "wtf/StdLibExtras.h"
30 #include "wtf/ThreadingPrimitives.h" 30 #include "wtf/ThreadingPrimitives.h"
31 #include "wtf/text/StringBuilder.h" 31 #include "wtf/text/StringBuilder.h"
32 #include "wtf/text/StringHash.h" 32 #include "wtf/text/StringHash.h"
33 #include "wtf/text/WTFString.h" 33 #include "wtf/text/WTFString.h"
34 34
35 namespace WTF { 35 namespace WTF {
36 36
37 #if ENABLE(INSTANCE_COUNTER) || ENABLE(DETAILED_MEMORY_INFRA) 37 #if ENABLE(INSTANCE_COUNTER)
38 38
39 #if COMPILER(CLANG) 39 #if COMPILER(CLANG)
40 const size_t stringWithTypeNamePrefixLength = sizeof("const char *WTF::getString WithTypeName() [T = ") - 1; 40 const size_t stringWithTypeNamePrefixLength = sizeof("const char *WTF::getString WithTypeName() [T = ") - 1;
41 const size_t stringWithTypeNamePostfixLength = sizeof("]") - 1; 41 const size_t stringWithTypeNamePostfixLength = sizeof("]") - 1;
42 #elif COMPILER(GCC) 42 #elif COMPILER(GCC)
43 const size_t stringWithTypeNamePrefixLength = sizeof("const char* WTF::getString WithTypeName() [with T = ") - 1; 43 const size_t stringWithTypeNamePrefixLength = sizeof("const char* WTF::getString WithTypeName() [with T = ") - 1;
44 const size_t stringWithTypeNamePostfixLength = sizeof("]") - 1; 44 const size_t stringWithTypeNamePostfixLength = sizeof("]") - 1;
45 #elif COMPILER(MSVC) 45 #elif COMPILER(MSVC)
46 const size_t stringWithTypeNamePrefixLength = sizeof("const char *__cdecl WTF::g etStringWithTypeName<class ") - 1; 46 const size_t stringWithTypeNamePrefixLength = sizeof("const char *__cdecl WTF::g etStringWithTypeName<class ") - 1;
47 const size_t stringWithTypeNamePostfixLength = sizeof(">(void)") - 1; 47 const size_t stringWithTypeNamePostfixLength = sizeof(">(void)") - 1;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 return builder.toString(); 141 return builder.toString();
142 } 142 }
143 143
144 #else 144 #else
145 145
146 String dumpRefCountedInstanceCounts() 146 String dumpRefCountedInstanceCounts()
147 { 147 {
148 return String("{}"); 148 return String("{}");
149 } 149 }
150 150
151 #endif // ENABLE(INSTANCE_COUNTER) || ENABLE(DETAILED_MEMORY_INFRA) 151 #endif // ENABLE(INSTANCE_COUNTER)
152 152
153 } // namespace WTF 153 } // namespace WTF
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/InstanceCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698