OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |