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

Unified Diff: Source/platform/heap/Profiling.h

Issue 383743002: Oilpan: GC profiling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TracedValue contexts Created 6 years, 5 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
Index: Source/platform/heap/Profiling.h
diff --git a/Source/platform/heap/Profiling.h b/Source/platform/heap/Profiling.h
new file mode 100644
index 0000000000000000000000000000000000000000..aecbe3c6fac7954de17d5ef577f20764f3a08ebb
--- /dev/null
+++ b/Source/platform/heap/Profiling.h
@@ -0,0 +1,21 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef Profiling_h
+#define Profiling_h
+
+// Name for about:tracing events
+#define GC_PROFILE_GROUP "BlinkGC"
haraken 2014/07/14 02:26:14 "BlinkGC" => "blinkGC" (due to a convention of tra
zerny-chromium 2014/07/28 11:54:41 Done, but kept the macro so we avoid search-replac
+
+// Extended profiling of memory usage.
+#define GC_PROFILE_HEAP ENABLE(GC_PROFILING_HEAP)
haraken 2014/07/14 02:26:14 Blink normally doesn't use this kind of re-define.
zerny-chromium 2014/07/28 11:54:41 I can do that. The reasoning for having the two di
haraken 2014/07/28 17:45:47 If the split does really matter, I'm OK with intro
+#define GC_PROFILE_HEAP_PAGE_DUMP_THRESHOLD 0
+
+// Extended profiling of GC marking/tracing
+#define GC_PROFILE_MARKING ENABLE(GC_PROFILING_MARKING)
haraken 2014/07/14 02:26:14 Ditto.
+
+// Dependencies for several profiling usages.
+#define GC_PROFILE_DEFINE_CLASSNAME (GC_PROFILE_HEAP || GC_PROFILE_MARKING)
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698