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

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

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 // 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // Sum of times when the parser is executing a script that was inserted from 92 // Sum of times when the parser is executing a script that was inserted from
93 // document.write. This duration must be less than or equal to 93 // document.write. This duration must be less than or equal to
94 // parse_blocked_on_script_load_duration. Note that this value may be updated 94 // parse_blocked_on_script_load_duration. Note that this value may be updated
95 // multiple times during the period between parse_start and parse_stop. Note 95 // multiple times during the period between parse_start and parse_stop. Note
96 // that some uncommon cases where scripts are loaded via document.write are 96 // that some uncommon cases where scripts are loaded via document.write are
97 // not currently covered by this field. See crbug/600711 for details. 97 // not currently covered by this field. See crbug/600711 for details.
98 base::Optional<base::TimeDelta> 98 base::Optional<base::TimeDelta>
99 parse_blocked_on_script_execution_from_document_write_duration; 99 parse_blocked_on_script_execution_from_document_write_duration;
100 100
101 // Time spent parsing author style sheets.
102 base::Optional<base::TimeDelta> author_style_sheet_parse_duration_before_fcp;
Bryan McQuade 2016/11/04 14:11:29 I think we're overdue for providing some amount of
Charlie Harrison 2016/11/04 16:05:19 Done.
103
101 // If you add additional members, also be sure to update operator==, 104 // If you add additional members, also be sure to update operator==,
102 // page_load_metrics_messages.h, and IsEmpty(). 105 // page_load_metrics_messages.h, and IsEmpty().
103 }; 106 };
104 107
105 struct PageLoadMetadata { 108 struct PageLoadMetadata {
106 PageLoadMetadata(); 109 PageLoadMetadata();
107 bool operator==(const PageLoadMetadata& other) const; 110 bool operator==(const PageLoadMetadata& other) const;
108 // These are packed blink::WebLoadingBehaviorFlag enums. 111 // These are packed blink::WebLoadingBehaviorFlag enums.
109 int behavior_flags = blink::WebLoadingBehaviorNone; 112 int behavior_flags = blink::WebLoadingBehaviorNone;
110 }; 113 };
111 114
112 } // namespace page_load_metrics 115 } // namespace page_load_metrics
113 116
114 #endif // CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_ 117 #endif // CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_TIMING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698