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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentTiming.cpp

Issue 2341333003: Use chromium trace_event implementation in blink (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/DocumentTiming.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentTiming.cpp b/third_party/WebKit/Source/core/dom/DocumentTiming.cpp
index 2b9a157131974d8eb1ff1657e609cd54dff2165f..5e3614acabd43d066de21ad7ebd9952d2cee74f4 100644
--- a/third_party/WebKit/Source/core/dom/DocumentTiming.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentTiming.cpp
@@ -34,42 +34,42 @@ void DocumentTiming::notifyDocumentTimingChanged()
void DocumentTiming::markDomLoading()
{
m_domLoading = monotonicallyIncreasingTime();
- TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "domLoading", m_domLoading, "frame", frame());
+ TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "domLoading", TraceEvent::toTraceTimestamp(m_domLoading), "frame", frame());
notifyDocumentTimingChanged();
}
void DocumentTiming::markDomInteractive()
{
m_domInteractive = monotonicallyIncreasingTime();
- TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "domInteractive", m_domInteractive, "frame", frame());
+ TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "domInteractive", TraceEvent::toTraceTimestamp(m_domInteractive), "frame", frame());
notifyDocumentTimingChanged();
}
void DocumentTiming::markDomContentLoadedEventStart()
{
m_domContentLoadedEventStart = monotonicallyIncreasingTime();
- TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "domContentLoadedEventStart", m_domContentLoadedEventStart, "frame", frame());
+ TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "domContentLoadedEventStart", TraceEvent::toTraceTimestamp(m_domContentLoadedEventStart), "frame", frame());
notifyDocumentTimingChanged();
}
void DocumentTiming::markDomContentLoadedEventEnd()
{
m_domContentLoadedEventEnd = monotonicallyIncreasingTime();
- TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "domContentLoadedEventEnd", m_domContentLoadedEventEnd, "frame", frame());
+ TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "domContentLoadedEventEnd", TraceEvent::toTraceTimestamp(m_domContentLoadedEventEnd), "frame", frame());
notifyDocumentTimingChanged();
}
void DocumentTiming::markDomComplete()
{
m_domComplete = monotonicallyIncreasingTime();
- TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "domComplete", m_domComplete, "frame", frame());
+ TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "domComplete", TraceEvent::toTraceTimestamp(m_domComplete), "frame", frame());
notifyDocumentTimingChanged();
}
void DocumentTiming::markFirstLayout()
{
m_firstLayout = monotonicallyIncreasingTime();
- TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "firstLayout", m_firstLayout, "frame", frame());
+ TRACE_EVENT_MARK_WITH_TIMESTAMP1("blink.user_timing,rail", "firstLayout", TraceEvent::toTraceTimestamp(m_firstLayout), "frame", frame());
notifyDocumentTimingChanged();
}
« no previous file with comments | « third_party/WebKit/Source/core/CoreInitializer.cpp ('k') | third_party/WebKit/Source/core/inspector/InspectorTraceEvents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698