OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
36 #include "core/events/Event.h" | 36 #include "core/events/Event.h" |
37 #include "core/timing/PerformanceCompositeTiming.h" | 37 #include "core/timing/PerformanceCompositeTiming.h" |
38 #include "core/timing/PerformanceObserver.h" | 38 #include "core/timing/PerformanceObserver.h" |
39 #include "core/timing/PerformanceRenderTiming.h" | 39 #include "core/timing/PerformanceRenderTiming.h" |
40 #include "core/timing/PerformanceResourceTiming.h" | 40 #include "core/timing/PerformanceResourceTiming.h" |
41 #include "core/timing/PerformanceUserTiming.h" | 41 #include "core/timing/PerformanceUserTiming.h" |
42 #include "platform/network/ResourceTimingInfo.h" | 42 #include "platform/network/ResourceTimingInfo.h" |
43 #include "platform/weborigin/SecurityOrigin.h" | 43 #include "platform/weborigin/SecurityOrigin.h" |
44 #include "wtf/CurrentTime.h" | 44 #include "wtf/CurrentTime.h" |
| 45 #include <algorithm> |
45 | 46 |
46 namespace blink { | 47 namespace blink { |
47 | 48 |
48 using PerformanceObserverVector = HeapVector<Member<PerformanceObserver>>; | 49 using PerformanceObserverVector = HeapVector<Member<PerformanceObserver>>; |
49 | 50 |
50 static const size_t defaultResourceTimingBufferSize = 150; | 51 static const size_t defaultResourceTimingBufferSize = 150; |
51 static const size_t defaultFrameTimingBufferSize = 150; | 52 static const size_t defaultFrameTimingBufferSize = 150; |
52 | 53 |
53 PerformanceBase::PerformanceBase(double timeOrigin) | 54 PerformanceBase::PerformanceBase(double timeOrigin) |
54 : m_frameTimingBufferSize(defaultFrameTimingBufferSize) | 55 : m_frameTimingBufferSize(defaultFrameTimingBufferSize) |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 visitor->trace(m_frameTimingBuffer); | 445 visitor->trace(m_frameTimingBuffer); |
445 visitor->trace(m_resourceTimingBuffer); | 446 visitor->trace(m_resourceTimingBuffer); |
446 visitor->trace(m_userTiming); | 447 visitor->trace(m_userTiming); |
447 visitor->trace(m_observers); | 448 visitor->trace(m_observers); |
448 visitor->trace(m_activeObservers); | 449 visitor->trace(m_activeObservers); |
449 visitor->trace(m_suspendedObservers); | 450 visitor->trace(m_suspendedObservers); |
450 RefCountedGarbageCollectedEventTargetWithInlineData<PerformanceBase>::trace(
visitor); | 451 RefCountedGarbageCollectedEventTargetWithInlineData<PerformanceBase>::trace(
visitor); |
451 } | 452 } |
452 | 453 |
453 } // namespace blink | 454 } // namespace blink |
OLD | NEW |