Update GWS font loading duration metrics minimum boundary to 1ms
Update GWS font loading duration metrics minimum boundary to 1ms
This CL updates the minimum boundary of the following histograms from
10ms to 1ms to capture sub-10ms durations:
- PageLoad.Clients.GoogleSearch.FontLoading.FallbackDuration.{GWSFontLoadingMilestone}
- PageLoad.Clients.GoogleSearch.FontLoading.InitialFallbackDuration.Complete
This prevents sub-10ms values from being rounded to zero and falling
into the underflow bucket.
diff --git a/components/page_load_metrics/google/browser/gws_page_load_metrics_observer.cc b/components/page_load_metrics/google/browser/gws_page_load_metrics_observer.cc
index 51245eb..1a52b48 100644
--- a/components/page_load_metrics/google/browser/gws_page_load_metrics_observer.cc
+++ b/components/page_load_metrics/google/browser/gws_page_load_metrics_observer.cc
@@ -459,7 +459,7 @@
base::StrCat(
{"PageLoad.Clients.GoogleSearch.FontLoading.FallbackDuration.",
suffix}),
- font_loading_metrics->fallback_duration.value(), base::Milliseconds(10),
+ font_loading_metrics->fallback_duration.value(), base::Milliseconds(1),
base::Minutes(10), 100);
}
@@ -1193,7 +1193,7 @@
RecordFontMetrics(font_loading_metrics, internal::kSuffixComplete);
if (font_loading_metrics->fallback_initial_duration) {
- PAGE_LOAD_HISTOGRAM(
+ PAGE_LOAD_HISTOGRAM2(
"PageLoad.Clients.GoogleSearch.FontLoading.InitialFallbackDuration."
"Complete",
font_loading_metrics->fallback_initial_duration.value());
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
PTAL.
I haven't updated the metric name since we are not getting much data and we are the only people who is looking at this metric as of now. If we need to rename them, please let me know.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
base::StrCat(Can you add a suffix number, or update the XML side comment to note that the logic is changed? (guideline prefers the suffix)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
Added prefix. Can you rubber stamp the CL as it lost +1? Thanks!
Can you add a suffix number, or update the XML side comment to note that the logic is changed? (guideline prefers the suffix)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |