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

Unified Diff: third_party/WebKit/Source/core/css/CSSTiming.h

Issue 2533783003: Add metrics for style update time before FCP. (Closed)
Patch Set: value_or(base::TimeDelta()) Created 4 years, 1 month 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/css/CSSTiming.h
diff --git a/third_party/WebKit/Source/core/css/CSSTiming.h b/third_party/WebKit/Source/core/css/CSSTiming.h
index 3e9873e4f3e31fa10a8067ef878a1df0efdd4a20..871ef62056514c653fd831ea721429bc02166c2b 100644
--- a/third_party/WebKit/Source/core/css/CSSTiming.h
+++ b/third_party/WebKit/Source/core/css/CSSTiming.h
@@ -22,13 +22,15 @@ class CSSTiming : public GarbageCollectedFinalized<CSSTiming>,
public:
virtual ~CSSTiming() {}
- // TODO(csharrison): Also record update style time before first paint.
void recordAuthorStyleSheetParseTime(double seconds);
+ void recordUpdateDuration(double seconds);
double authorStyleSheetParseDurationBeforeFCP() const {
return m_parseTimeBeforeFCP;
}
+ double updateDurationBeforeFCP() const { return m_updateTimeBeforeFCP; }
+
static CSSTiming& from(Document&);
DECLARE_VIRTUAL_TRACE();
@@ -36,6 +38,7 @@ class CSSTiming : public GarbageCollectedFinalized<CSSTiming>,
explicit CSSTiming(Document&);
double m_parseTimeBeforeFCP = 0;
+ double m_updateTimeBeforeFCP = 0;
Member<Document> m_document;
Member<PaintTiming> m_paintTiming;
« no previous file with comments | « chrome/test/data/page_load_metrics/page_with_css.html ('k') | third_party/WebKit/Source/core/css/CSSTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698