diff options
author | nick <nick@chromium.org> | 2015-07-16 17:42:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-17 00:43:40 +0000 |
commit | d8ec87b3f93ecf173005fd6020e3f8d3774af128 (patch) | |
tree | 96c5210129206c71cd2d9f8acef7d14065bd6f95 /extensions/browser/bad_message.cc | |
parent | c015cb96c52faac1d584880456426a5119459647 (diff) | |
download | chromium_src-d8ec87b3f93ecf173005fd6020e3f8d3774af128.zip chromium_src-d8ec87b3f93ecf173005fd6020e3f8d3774af128.tar.gz chromium_src-d8ec87b3f93ecf173005fd6020e3f8d3774af128.tar.bz2 |
Use SPARSE_SLOWLY for bad_message.cc histograms.
Put the python script comment in an easier-to-spot place.
BUG=None
Review URL: https://codereview.chromium.org/1241913004
Cr-Commit-Position: refs/heads/master@{#339189}
Diffstat (limited to 'extensions/browser/bad_message.cc')
-rw-r--r-- | extensions/browser/bad_message.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/browser/bad_message.cc b/extensions/browser/bad_message.cc index 85ce5d6..a0dacaa 100644 --- a/extensions/browser/bad_message.cc +++ b/extensions/browser/bad_message.cc @@ -5,7 +5,7 @@ #include "extensions/browser/bad_message.h" #include "base/logging.h" -#include "base/metrics/histogram_macros.h" +#include "base/metrics/sparse_histogram.h" #include "content/public/browser/render_process_host.h" namespace extensions { @@ -15,8 +15,8 @@ void ReceivedBadMessage(content::RenderProcessHost* host, BadMessageReason reason) { LOG(ERROR) << "Terminating extension renderer for bad IPC message, reason " << reason; - UMA_HISTOGRAM_ENUMERATION("Stability.BadMessageTerminated.Extensions", reason, - BAD_MESSAGE_MAX); + UMA_HISTOGRAM_SPARSE_SLOWLY("Stability.BadMessageTerminated.Extensions", + reason); host->ShutdownForBadMessage(); } |