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

Unified Diff: third_party/WebKit/Source/web/WebPerformance.cpp

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/web/WebPerformance.cpp
diff --git a/third_party/WebKit/Source/web/WebPerformance.cpp b/third_party/WebKit/Source/web/WebPerformance.cpp
index 3b3bee457615884254cb04d74ca28ab6ee80b27a..6336020b6c0cc40d8eac4bede20db368058896fd 100644
--- a/third_party/WebKit/Source/web/WebPerformance.cpp
+++ b/third_party/WebKit/Source/web/WebPerformance.cpp
@@ -202,6 +202,11 @@ double WebPerformance::authorStyleSheetParseDurationBeforeFCP() const {
m_private->timing()->authorStyleSheetParseDurationBeforeFCP());
}
+double WebPerformance::updateStyleDurationBeforeFCP() const {
+ return millisecondsToSeconds(
+ m_private->timing()->updateStyleDurationBeforeFCP());
+}
+
WebPerformance::WebPerformance(Performance* performance)
: m_private(performance) {}
« no previous file with comments | « third_party/WebKit/Source/core/timing/PerformanceTiming.cpp ('k') | third_party/WebKit/public/web/WebPerformance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698