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

Side by Side Diff: Source/core/timing/PerformanceUserTiming.cpp

Issue 169293002: Oilpan: Remove GC_INFO_{DEFINE,DECLARE} macros (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixheaptest Created 6 years, 10 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
« no previous file with comments | « Source/core/timing/PerformanceUserTiming.h ('k') | Source/core/xml/DOMParser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Intel Inc. All rights reserved. 2 * Copyright (C) 2012 Intel 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 17 matching lines...) Expand all
28 28
29 #include "bindings/v8/ExceptionState.h" 29 #include "bindings/v8/ExceptionState.h"
30 #include "core/dom/ExceptionCode.h" 30 #include "core/dom/ExceptionCode.h"
31 #include "core/timing/Performance.h" 31 #include "core/timing/Performance.h"
32 #include "core/timing/PerformanceMark.h" 32 #include "core/timing/PerformanceMark.h"
33 #include "core/timing/PerformanceMeasure.h" 33 #include "core/timing/PerformanceMeasure.h"
34 #include "public/platform/Platform.h" 34 #include "public/platform/Platform.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 DEFINE_GC_INFO(UserTiming);
39
40 namespace { 38 namespace {
41 39
42 typedef HashMap<String, NavigationTimingFunction> RestrictedKeyMap; 40 typedef HashMap<String, NavigationTimingFunction> RestrictedKeyMap;
43 static RestrictedKeyMap restrictedKeyMap() 41 static RestrictedKeyMap restrictedKeyMap()
44 { 42 {
45 DEFINE_STATIC_LOCAL(RestrictedKeyMap, map, ()); 43 DEFINE_STATIC_LOCAL(RestrictedKeyMap, map, ());
46 if (map.isEmpty()) { 44 if (map.isEmpty()) {
47 map.add("navigationStart", &PerformanceTiming::navigationStart); 45 map.add("navigationStart", &PerformanceTiming::navigationStart);
48 map.add("unloadEventStart", &PerformanceTiming::unloadEventStart); 46 map.add("unloadEventStart", &PerformanceTiming::unloadEventStart);
49 map.add("unloadEventEnd", &PerformanceTiming::unloadEventEnd); 47 map.add("unloadEventEnd", &PerformanceTiming::unloadEventEnd);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 206 }
209 207
210 void UserTiming::trace(Visitor* visitor) 208 void UserTiming::trace(Visitor* visitor)
211 { 209 {
212 visitor->trace(m_performance); 210 visitor->trace(m_performance);
213 visitor->trace(m_marksMap); 211 visitor->trace(m_marksMap);
214 visitor->trace(m_measuresMap); 212 visitor->trace(m_measuresMap);
215 } 213 }
216 214
217 } // namespace WebCore 215 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/timing/PerformanceUserTiming.h ('k') | Source/core/xml/DOMParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698