Issue 1384722 in chromium: Remove expired histograms Blink.MemoryCache.RevalidationPolicy.Preload, Blink.MemoryCache.RevalidationPolicy.Script, Blink.MemoryCache.RevalidationPolicy.Preload.Script

1,628 views
Skip to first unread message

histogram-eraser via monorail

unread,
Nov 15, 2022, 2:11:40 PM11/15/22
to loadi...@chromium.org
Status: Untriaged
Owner: ----
CC: loadi...@chromium.org, hiro...@chromium.org
Labels: Hotlist-ExpiredHistograms-CodeHealthRotation
Components: Internals>Network
Pri: 3
Type: Task

New issue 1384722 by histogra...@uma-hrd.google.com.iam.gserviceaccount.com: Remove expired histograms Blink.MemoryCache.RevalidationPolicy.Preload, Blink.MemoryCache.RevalidationPolicy.Script, Blink.MemoryCache.RevalidationPolicy.Preload.Script
https://bugs.chromium.org/p/chromium/issues/detail?id=1384722

The following histograms are marked as expired in histograms.xml but still exist in the codebase:
- Blink.MemoryCache.RevalidationPolicy.Preload (expired as of 2021-04-21)
- Blink.MemoryCache.RevalidationPolicy.Preload.Script (expired as of 2021-04-21)
- Blink.MemoryCache.RevalidationPolicy.Script (expired as of 2021-04-21)

The following code locations were found:

content/browser/network/split_cache_browsertest.cc:1015:
"Blink.MemoryCache.RevalidationPolicy.Preload.Script", 2);
content/browser/network/split_cache_browsertest.cc:1017:
"Blink.MemoryCache.RevalidationPolicy.Preload.Script",
content/browser/network/split_cache_browsertest.cc:1020:
"Blink.MemoryCache.RevalidationPolicy.Preload.Script",
content/browser/network/split_cache_browsertest.cc:1024:
histograms.ExpectTotalCount("Blink.MemoryCache.RevalidationPolicy.Script", 2);
content/browser/network/split_cache_browsertest.cc:1025:
histograms.ExpectBucketCount("Blink.MemoryCache.RevalidationPolicy.Script",
content/browser/network/split_cache_browsertest.cc:1037:
"Blink.MemoryCache.RevalidationPolicy.Preload.Script", 3);
content/browser/network/split_cache_browsertest.cc:1039:
"Blink.MemoryCache.RevalidationPolicy.Preload.Script",
content/browser/network/split_cache_browsertest.cc:1042:
"Blink.MemoryCache.RevalidationPolicy.Preload.Script",
content/browser/network/split_cache_browsertest.cc:1044:
histograms.ExpectTotalCount("Blink.MemoryCache.RevalidationPolicy.Script", 3);
content/browser/network/split_cache_browsertest.cc:1045:
histograms.ExpectBucketCount("Blink.MemoryCache.RevalidationPolicy.Script",

As these histograms are expired, no data for them gets collected. To reduce technical debt, the logging code for these histograms should be removed, including any supporting code. This is the recommended course of action for the majority of such histograms.

In rare cases, a histogram's code should be kept around, such as for debugging purposes. Such histograms must be clearly annotated in histograms.xml per the following instructions:
https://chromium.googlesource.com/chromium/src/+/HEAD/tools/metrics/histograms/README.md#Intentionally-expired-histograms

If you're an owner of any of the histograms, please triage this bug and either:
- Mark the bug as Available to confirm that the histograms can be removed.
- Annotate the histograms as intentionally expired (see above) and update the bug.

Available bugs will be added to the Code Health Rotation to have the code cleaned up by participants in the rotation.

If the bug is left in the Untriaged state without any activity by histogram owners, it will be marked as Available after approximately two weeks.

--
You received this message because:
1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment or make updates.

yoichio via monorail

unread,
Nov 17, 2022, 2:09:42 AM11/17/22
to loadi...@chromium.org
Updates:
Owner: hiro...@chromium.org
Status: Assigned

Comment #1 on issue 1384722 by yoi...@chromium.org: Remove expired histograms Blink.MemoryCache.RevalidationPolicy.Preload, Blink.MemoryCache.RevalidationPolicy.Script, Blink.MemoryCache.RevalidationPolicy.Preload.Script
https://bugs.chromium.org/p/chromium/issues/detail?id=1384722#c1

(No comment was entered for this change.)
Reply all
Reply to author
Forward
0 new messages