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 |