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

Unified Diff: chrome/common/metrics_helpers.cc

Issue 4349002: Revert 64687 - Try to detect internal corruption of histogram instances.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/metrics/histogram_unittest.cc ('k') | chrome/renderer/renderer_histogram_snapshots.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/metrics_helpers.cc
===================================================================
--- chrome/common/metrics_helpers.cc (revision 64845)
+++ chrome/common/metrics_helpers.cc (working copy)
@@ -484,25 +484,9 @@
// Get up-to-date snapshot of sample stats.
Histogram::SampleSet snapshot;
histogram.SnapshotSample(&snapshot);
+
const std::string& histogram_name = histogram.histogram_name();
- int corruption = histogram.FindCorruption(snapshot);
- if (corruption) {
- NOTREACHED();
- // Don't send corrupt data to metrics survices.
- UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowser",
- corruption, Histogram::NEVER_EXCEEDED_VALUE);
- typedef std::map<std::string, int> ProblemMap;
- static ProblemMap* inconsistencies = new ProblemMap;
- int old_corruption = (*inconsistencies)[histogram_name];
- if (old_corruption == (corruption | old_corruption))
- return; // We've already seen this corruption for this histogram.
- (*inconsistencies)[histogram_name] |= corruption;
- UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique",
- corruption, Histogram::NEVER_EXCEEDED_VALUE);
- return;
- }
-
// Find the already sent stats, or create an empty set.
LoggedSampleMap::iterator it = logged_samples_.find(histogram_name);
Histogram::SampleSet* already_logged;
« no previous file with comments | « base/metrics/histogram_unittest.cc ('k') | chrome/renderer/renderer_histogram_snapshots.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698