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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #include "core/timing/PerformanceUserTiming.h" | 26 #include "core/timing/PerformanceUserTiming.h" |
27 | 27 |
28 #include "bindings/core/v8/ExceptionState.h" | 28 #include "bindings/core/v8/ExceptionState.h" |
29 #include "core/dom/ExceptionCode.h" | 29 #include "core/dom/ExceptionCode.h" |
30 #include "core/timing/PerformanceBase.h" | 30 #include "core/timing/PerformanceBase.h" |
31 #include "core/timing/PerformanceMark.h" | 31 #include "core/timing/PerformanceMark.h" |
32 #include "core/timing/PerformanceMeasure.h" | 32 #include "core/timing/PerformanceMeasure.h" |
33 #include "platform/Histogram.h" | 33 #include "platform/Histogram.h" |
34 #include "platform/instrumentation/tracing/TraceEvent.h" | 34 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 35 #include "platform/wtf/text/StringHash.h" |
35 #include "public/platform/Platform.h" | 36 #include "public/platform/Platform.h" |
36 #include "wtf/text/StringHash.h" | |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 namespace { | 40 namespace { |
41 | 41 |
42 using RestrictedKeyMap = HashMap<String, NavigationTimingFunction>; | 42 using RestrictedKeyMap = HashMap<String, NavigationTimingFunction>; |
43 | 43 |
44 RestrictedKeyMap* CreateRestrictedKeyMap() { | 44 RestrictedKeyMap* CreateRestrictedKeyMap() { |
45 RestrictedKeyMap* map = new RestrictedKeyMap(); | 45 RestrictedKeyMap* map = new RestrictedKeyMap(); |
46 map->insert("navigationStart", &PerformanceTiming::navigationStart); | 46 map->insert("navigationStart", &PerformanceTiming::navigationStart); |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 return GetEntrySequenceByName(measures_map_, name); | 247 return GetEntrySequenceByName(measures_map_, name); |
248 } | 248 } |
249 | 249 |
250 DEFINE_TRACE(UserTiming) { | 250 DEFINE_TRACE(UserTiming) { |
251 visitor->Trace(performance_); | 251 visitor->Trace(performance_); |
252 visitor->Trace(marks_map_); | 252 visitor->Trace(marks_map_); |
253 visitor->Trace(measures_map_); | 253 visitor->Trace(measures_map_); |
254 } | 254 } |
255 | 255 |
256 } // namespace blink | 256 } // namespace blink |
OLD | NEW |