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

Unified Diff: Source/wtf/InstanceCounter.h

Issue 1307743008: Warn about extractTypeNameFromFunctionName usage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add todo 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/InstanceCounter.h
diff --git a/Source/wtf/InstanceCounter.h b/Source/wtf/InstanceCounter.h
index 7b359ab374c6c6813d83cc341c62c06bcf33c3a4..602de6559fdf87fa0c76a4b9b4f6b43bd5e9e49c 100644
--- a/Source/wtf/InstanceCounter.h
+++ b/Source/wtf/InstanceCounter.h
@@ -34,6 +34,10 @@ namespace WTF {
class String;
WTF_EXPORT String dumpRefCountedInstanceCounts();
+// Warning: Using extractTypeNameFromFunctionName bloats binary size.
+// This function should be only used for debug and profiling purposes,
+// and should be never enabled on release builds.
+// TODO(kouhei): Move this inside #if when all dependencies are removed.
WTF_EXPORT String extractTypeNameFromFunctionName(const char* funcName);
template<typename T>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698