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

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceTiming.cpp

Issue 2039363003: FirstMeaningfulPaint UMA (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 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 354
355 unsigned long long PerformanceTiming::firstContentfulPaint() const 355 unsigned long long PerformanceTiming::firstContentfulPaint() const
356 { 356 {
357 const PaintTiming* timing = paintTiming(); 357 const PaintTiming* timing = paintTiming();
358 if (!timing) 358 if (!timing)
359 return 0; 359 return 0;
360 360
361 return monotonicTimeToIntegerMilliseconds(timing->firstContentfulPaint()); 361 return monotonicTimeToIntegerMilliseconds(timing->firstContentfulPaint());
362 } 362 }
363 363
364 unsigned long long PerformanceTiming::firstMeaningfulPaint() const
365 {
366 const PaintTiming* timing = paintTiming();
367 if (!timing)
368 return 0;
369
370 return monotonicTimeToIntegerMilliseconds(timing->firstMeaningfulPaint());
371 }
372
364 unsigned long long PerformanceTiming::parseStart() const 373 unsigned long long PerformanceTiming::parseStart() const
365 { 374 {
366 const DocumentParserTiming* timing = documentParserTiming(); 375 const DocumentParserTiming* timing = documentParserTiming();
367 if (!timing) 376 if (!timing)
368 return 0; 377 return 0;
369 378
370 return monotonicTimeToIntegerMilliseconds(timing->parserStart()); 379 return monotonicTimeToIntegerMilliseconds(timing->parserStart());
371 } 380 }
372 381
373 unsigned long long PerformanceTiming::parseStop() const 382 unsigned long long PerformanceTiming::parseStop() const
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 513
505 return timing->pseudoWallTimeToMonotonicTime(toDoubleSeconds(integerMillisec onds)); 514 return timing->pseudoWallTimeToMonotonicTime(toDoubleSeconds(integerMillisec onds));
506 } 515 }
507 516
508 DEFINE_TRACE(PerformanceTiming) 517 DEFINE_TRACE(PerformanceTiming)
509 { 518 {
510 DOMWindowProperty::trace(visitor); 519 DOMWindowProperty::trace(visitor);
511 } 520 }
512 521
513 } // namespace blink 522 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/timing/PerformanceTiming.h ('k') | third_party/WebKit/Source/platform/graphics/GraphicsLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698