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

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

Issue 383743002: Oilpan: GC profiling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed Profiling.h 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 unified diff | Download patch | Annotate | Revision Log
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 17 matching lines...) Expand all
28 28
29 #include "wtf/HashMap.h" 29 #include "wtf/HashMap.h"
30 #include "wtf/StdLibExtras.h" 30 #include "wtf/StdLibExtras.h"
31 #include "wtf/ThreadingPrimitives.h" 31 #include "wtf/ThreadingPrimitives.h"
32 #include "wtf/text/StringBuilder.h" 32 #include "wtf/text/StringBuilder.h"
33 #include "wtf/text/StringHash.h" 33 #include "wtf/text/StringHash.h"
34 #include "wtf/text/WTFString.h" 34 #include "wtf/text/WTFString.h"
35 35
36 namespace WTF { 36 namespace WTF {
37 37
38 #if ENABLE(INSTANCE_COUNTER) || ENABLE(GC_TRACING) 38 #if ENABLE(INSTANCE_COUNTER) || ENABLE(GC_PROFILING)
39 39
40 #if COMPILER(CLANG) 40 #if COMPILER(CLANG)
41 const size_t extractNameFunctionPrefixLength = sizeof("const char *WTF::extractN ameFunction() [T = ") - 1; 41 const size_t extractNameFunctionPrefixLength = sizeof("const char *WTF::extractN ameFunction() [T = ") - 1;
42 const size_t extractNameFunctionPostfixLength = 1; 42 const size_t extractNameFunctionPostfixLength = 1;
43 #elif COMPILER(GCC) 43 #elif COMPILER(GCC)
44 const size_t extractNameFunctionPrefixLength = sizeof("const char* WTF::extractN ameFunction() [with T = ") - 1; 44 const size_t extractNameFunctionPrefixLength = sizeof("const char* WTF::extractN ameFunction() [with T = ") - 1;
45 const size_t extractNameFunctionPostfixLength = 1; 45 const size_t extractNameFunctionPostfixLength = 1;
46 #else 46 #else
47 #warning "Extracting typename in a compiler other than GCC isn't supported atm" 47 #warning "Extracting typename in a compiler other than GCC isn't supported atm"
48 #endif 48 #endif
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 return builder.toString(); 139 return builder.toString();
140 } 140 }
141 141
142 #else 142 #else
143 143
144 String dumpRefCountedInstanceCounts() 144 String dumpRefCountedInstanceCounts()
145 { 145 {
146 return String("{}"); 146 return String("{}");
147 } 147 }
148 148
149 #endif // ENABLE(INSTANCE_COUNTER) || ENABLE(GC_TRACING) 149 #endif // ENABLE(INSTANCE_COUNTER) || ENABLE(GC_PROFILING)
150 150
151 } // namespace WTF 151 } // namespace WTF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698