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

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

Issue 2238543002: Instrument parser blocking script execution time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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/web/WebPerformance.cpp
diff --git a/third_party/WebKit/Source/web/WebPerformance.cpp b/third_party/WebKit/Source/web/WebPerformance.cpp
index 49882d2276047dd885e4a0db46dad606cf77ac98..58a10c44b463d9b430fbeef642668023bf73e871 100644
--- a/third_party/WebKit/Source/web/WebPerformance.cpp
+++ b/third_party/WebKit/Source/web/WebPerformance.cpp
@@ -215,6 +215,16 @@ double WebPerformance::parseBlockedOnScriptLoadFromDocumentWriteDuration() const
return millisecondsToSeconds(m_private->timing()->parseBlockedOnScriptLoadFromDocumentWriteDuration());
}
+double WebPerformance::parseBlockedOnScriptExecutionDuration() const
+{
+ return millisecondsToSeconds(m_private->timing()->parseBlockedOnScriptExecutionDuration());
+}
+
+double WebPerformance::parseBlockedOnScriptExecutionFromDocumentWriteDuration() const
+{
+ return millisecondsToSeconds(m_private->timing()->parseBlockedOnScriptExecutionFromDocumentWriteDuration());
+}
+
WebPerformance::WebPerformance(Performance* performance)
: m_private(performance)
{

Powered by Google App Engine
This is Rietveld 408576698