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

Side by Side Diff: third_party/WebKit/Source/web/WebPerformance.cpp

Issue 2468913002: Add CSSTiming to collect aggregate PLT-level stats about CSS. (Closed)
Patch Set: fix browser test 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 m_private->timing()->parseBlockedOnScriptExecutionDuration()); 190 m_private->timing()->parseBlockedOnScriptExecutionDuration());
191 } 191 }
192 192
193 double WebPerformance::parseBlockedOnScriptExecutionFromDocumentWriteDuration() 193 double WebPerformance::parseBlockedOnScriptExecutionFromDocumentWriteDuration()
194 const { 194 const {
195 return millisecondsToSeconds( 195 return millisecondsToSeconds(
196 m_private->timing() 196 m_private->timing()
197 ->parseBlockedOnScriptExecutionFromDocumentWriteDuration()); 197 ->parseBlockedOnScriptExecutionFromDocumentWriteDuration());
198 } 198 }
199 199
200 double WebPerformance::authorStyleSheetParseDurationBeforeFCP() const {
201 return millisecondsToSeconds(
202 m_private->timing()->authorStyleSheetParseDurationBeforeFCP());
203 }
204
200 WebPerformance::WebPerformance(Performance* performance) 205 WebPerformance::WebPerformance(Performance* performance)
201 : m_private(performance) {} 206 : m_private(performance) {}
202 207
203 WebPerformance& WebPerformance::operator=(Performance* performance) { 208 WebPerformance& WebPerformance::operator=(Performance* performance) {
204 m_private = performance; 209 m_private = performance;
205 return *this; 210 return *this;
206 } 211 }
207 212
208 } // namespace blink 213 } // namespace blink
OLDNEW
« 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