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

Side by Side Diff: chrome/common/page_load_metrics/page_load_timing.h

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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_ 5 #ifndef CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_
6 #define CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_ 6 #define CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_
7 7
8 #include "base/optional.h" 8 #include "base/optional.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" 10 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 base::Optional<base::TimeDelta> first_layout; 45 base::Optional<base::TimeDelta> first_layout;
46 46
47 // Time when the first paint is performed. 47 // Time when the first paint is performed.
48 base::Optional<base::TimeDelta> first_paint; 48 base::Optional<base::TimeDelta> first_paint;
49 // Time when the first non-blank text is painted. 49 // Time when the first non-blank text is painted.
50 base::Optional<base::TimeDelta> first_text_paint; 50 base::Optional<base::TimeDelta> first_text_paint;
51 // Time when the first image is painted. 51 // Time when the first image is painted.
52 base::Optional<base::TimeDelta> first_image_paint; 52 base::Optional<base::TimeDelta> first_image_paint;
53 // Time when the first contentful thing (image, text, etc.) is painted. 53 // Time when the first contentful thing (image, text, etc.) is painted.
54 base::Optional<base::TimeDelta> first_contentful_paint; 54 base::Optional<base::TimeDelta> first_contentful_paint;
55 // (Experimental) Time when the page's primary content is painted.
56 base::Optional<base::TimeDelta> first_meaningful_paint;
55 57
56 // Time that the document's parser started and stopped parsing main resource 58 // Time that the document's parser started and stopped parsing main resource
57 // content. 59 // content.
58 base::Optional<base::TimeDelta> parse_start; 60 base::Optional<base::TimeDelta> parse_start;
59 base::Optional<base::TimeDelta> parse_stop; 61 base::Optional<base::TimeDelta> parse_stop;
60 62
61 // Sum of times when the parser is blocked waiting on the load of a script. 63 // Sum of times when the parser is blocked waiting on the load of a script.
62 // This duration takes place between parser_start and parser_stop, and thus 64 // This duration takes place between parser_start and parser_stop, and thus
63 // must be less than or equal to parser_stop - parser_start. Note that this 65 // must be less than or equal to parser_stop - parser_start. Note that this
64 // value may be updated multiple times during the period between parse_start 66 // value may be updated multiple times during the period between parse_start
(...skipping 17 matching lines...) Expand all
82 struct PageLoadMetadata { 84 struct PageLoadMetadata {
83 PageLoadMetadata(); 85 PageLoadMetadata();
84 bool operator==(const PageLoadMetadata& other) const; 86 bool operator==(const PageLoadMetadata& other) const;
85 // These are packed blink::WebLoadingBehaviorFlag enums. 87 // These are packed blink::WebLoadingBehaviorFlag enums.
86 int behavior_flags = blink::WebLoadingBehaviorNone; 88 int behavior_flags = blink::WebLoadingBehaviorNone;
87 }; 89 };
88 90
89 } // namespace page_load_metrics 91 } // namespace page_load_metrics
90 92
91 #endif // CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_ 93 #endif // CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_
OLDNEW
« no previous file with comments | « chrome/common/page_load_metrics/page_load_metrics_messages.h ('k') | chrome/common/page_load_metrics/page_load_timing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698