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

Side by Side 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 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 { 200 double WebPerformance::authorStyleSheetParseDurationBeforeFCP() const {
201 return millisecondsToSeconds( 201 return millisecondsToSeconds(
202 m_private->timing()->authorStyleSheetParseDurationBeforeFCP()); 202 m_private->timing()->authorStyleSheetParseDurationBeforeFCP());
203 } 203 }
204 204
205 double WebPerformance::updateStyleDurationBeforeFCP() const {
206 return millisecondsToSeconds(
207 m_private->timing()->updateStyleDurationBeforeFCP());
208 }
209
205 WebPerformance::WebPerformance(Performance* performance) 210 WebPerformance::WebPerformance(Performance* performance)
206 : m_private(performance) {} 211 : m_private(performance) {}
207 212
208 WebPerformance& WebPerformance::operator=(Performance* performance) { 213 WebPerformance& WebPerformance::operator=(Performance* performance) {
209 m_private = performance; 214 m_private = performance;
210 return *this; 215 return *this;
211 } 216 }
212 217
213 } // namespace blink 218 } // 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