Commit 1b6b36c1 authored by ksakamoto's avatar ksakamoto Committed by Commit bot

Add trace event for FirstMeaningfulPaint candidates

This adds a trace event that is logged every time the provisional
FirstMeaningfulPaint timestamp is updated.

Trace-based implementations can find FirstMeaningfulPaint for the page
load by looking for the last event in the trace.

BUG=638124
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2

Review-Url: https://codereview.chromium.org/2276573003
Cr-Commit-Position: refs/heads/master@{#414296}
parent b5b34301
......@@ -7,6 +7,7 @@
#include "core/css/FontFaceSet.h"
#include "core/fetch/ResourceFetcher.h"
#include "core/paint/PaintTiming.h"
#include "platform/TraceEvent.h"
namespace blink {
......@@ -86,6 +87,8 @@ void FirstMeaningfulPaintDetector::notifyPaint()
m_provisionalFirstMeaningfulPaint = monotonicallyIncreasingTime();
m_state = NextPaintIsNotMeaningful;
TRACE_EVENT_MARK_WITH_TIMESTAMP1("loading", "firstMeaningfulPaintCandidate", m_provisionalFirstMeaningfulPaint, "frame", document()->frame());
}
void FirstMeaningfulPaintDetector::checkNetworkStable()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment