New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 635726 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature



Sign in to add a comment

Reduce find_unmapped_histograms.py false negative rate

Project Member Reported by ricea@chromium.org, Aug 9 2016

Issue description

Comment 1 by ricea@chromium.org, Aug 9 2016

Components: Internals>Metrics
Project Member

Comment 2 by bugdroid1@chromium.org, Aug 12 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/986ac05bfafd2f0016f282473324011326b52947

commit 986ac05bfafd2f0016f282473324011326b52947
Author: ricea <ricea@chromium.org>
Date: Fri Aug 12 07:15:23 2016

In find_unmapped_histograms.py, remove comments from histogram names

While scanning the source code for histogram matches, remove C++-style
and C-style comments from histogram names. This reduces the number of
false-negatives that the script produces.

Before / after diff:

  WARNING: components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc contains non-literal histogram name <uma>
  WARNING: cc/raster/one_copy_raster_buffer_provider.cc contains non-literal histogram name <base::StringPrintf("Renderer4.%s.PartialRasterPercentageSaved.OneCopy">
- WARNING: content/browser/renderer_host/p2p/socket_host_udp.cc contains non-literal histogram name <"WebRTC.SystemSendPacketDuration_UDP" /* name */>
- WARNING: ui/events/blink/input_handler_proxy.cc contains non-literal histogram name <// So named for historical reasons.
-             "Event.Latency.RendererImpl.GestureScroll2">
  WARNING: chrome/browser/browser_shutdown.cc contains non-literal histogram name <time.c_str(>
  WARNING: chrome/browser/browser_shutdown.cc contains non-literal histogram name <time_per.c_str(>
--- 20,23 ----

R=isherman@chromium.org
BUG=635726

Review-Url: https://codereview.chromium.org/2228573003
Cr-Commit-Position: refs/heads/master@{#411567}

[modify] https://crrev.com/986ac05bfafd2f0016f282473324011326b52947/tools/metrics/histograms/find_unmapped_histograms.py

Sign in to add a comment