| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/dom/DocumentTiming.h" | 5 #include "core/dom/DocumentTiming.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/loader/DocumentLoader.h" | 8 #include "core/loader/DocumentLoader.h" |
| 9 #include "platform/TraceEvent.h" | 9 #include "platform/tracing/TraceEvent.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 DocumentTiming::DocumentTiming(Document& document) : m_document(document) {} | 13 DocumentTiming::DocumentTiming(Document& document) : m_document(document) {} |
| 14 | 14 |
| 15 DEFINE_TRACE(DocumentTiming) { | 15 DEFINE_TRACE(DocumentTiming) { |
| 16 visitor->trace(m_document); | 16 visitor->trace(m_document); |
| 17 } | 17 } |
| 18 | 18 |
| 19 LocalFrame* DocumentTiming::frame() const { | 19 LocalFrame* DocumentTiming::frame() const { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 void DocumentTiming::markFirstLayout() { | 70 void DocumentTiming::markFirstLayout() { |
| 71 m_firstLayout = monotonicallyIncreasingTime(); | 71 m_firstLayout = monotonicallyIncreasingTime(); |
| 72 TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "firstLayout", | 72 TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "firstLayout", |
| 73 TraceEvent::toTraceTimestamp(m_firstLayout), | 73 TraceEvent::toTraceTimestamp(m_firstLayout), |
| 74 "frame", frame()); | 74 "frame", frame()); |
| 75 notifyDocumentTimingChanged(); | 75 notifyDocumentTimingChanged(); |
| 76 } | 76 } |
| 77 | 77 |
| 78 } // namespace blink | 78 } // namespace blink |
| OLD | NEW |