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

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: minor comment/naming changes 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 m_private->timing()->authorStyleSheetParseDurationBeforeFCP();
202 }
203
200 WebPerformance::WebPerformance(Performance* performance) 204 WebPerformance::WebPerformance(Performance* performance)
201 : m_private(performance) {} 205 : m_private(performance) {}
202 206
203 WebPerformance& WebPerformance::operator=(Performance* performance) { 207 WebPerformance& WebPerformance::operator=(Performance* performance) {
204 m_private = performance; 208 m_private = performance;
205 return *this; 209 return *this;
206 } 210 }
207 211
208 } // namespace blink 212 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698