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

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

Issue 383743002: Oilpan: GC profiling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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/core/fetch/StyleSheetResource.h b/Source/platform/heap/Profiling.h
similarity index 76%
copy from Source/core/fetch/StyleSheetResource.h
copy to Source/platform/heap/Profiling.h
index bee7247cbed5303decb437b75119609678ddfb94..e6720e2b5df4a1f740e40709031a2aebe61ebc8a 100644
--- a/Source/core/fetch/StyleSheetResource.h
+++ b/Source/platform/heap/Profiling.h
@@ -28,24 +28,20 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef StyleSheetResource_h
-#define StyleSheetResource_h
+#ifndef Profiling_h
+#define Profiling_h
-#include "core/fetch/TextResource.h"
+// Name for about:tracing events
+#define GC_PROFILE_GROUP "BlinkGC"
-namespace WebCore {
+// Extended profiling of memory usage.
+#define GC_PROFILE_HEAP (ENABLE(GC_PROFILING) && true)
+#define GC_PROFILE_HEAP_PAGE_DUMP_THRESHOLD 0
-class StyleSheetResourceClient;
+// Extended profiling of GC marking/tracing
+#define GC_PROFILE_MARKING (ENABLE(GC_PROFILING) && false)
-class StyleSheetResource : public TextResource {
-public:
- typedef StyleSheetResourceClient ClientType;
-
- StyleSheetResource(const ResourceRequest& request, Type type, const String& mimeType, const String& charset)
- : TextResource(request, type, mimeType, charset)
- { }
-};
-
-}
+// 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