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

Unified Diff: base/metrics/histogram_base.cc

Issue 13119014: Telemetry: Don't silently compare histograms from different processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 8 months 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 | « no previous file | tools/perf/perf_tools/histogram.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram_base.cc
diff --git a/base/metrics/histogram_base.cc b/base/metrics/histogram_base.cc
index 835a05b56efd4ad1087e1363cd4757c1f44f7899..5272d0390af02f7e9ad18b314358080ff3420b2d 100644
--- a/base/metrics/histogram_base.cc
+++ b/base/metrics/histogram_base.cc
@@ -13,6 +13,7 @@
#include "base/metrics/histogram_samples.h"
#include "base/metrics/sparse_histogram.h"
#include "base/pickle.h"
+#include "base/process_util.h"
#include "base/values.h"
namespace base {
@@ -119,6 +120,7 @@ void HistogramBase::WriteJSON(std::string* output) const {
root.SetInteger("flags", flags());
root.Set("params", parameters.release());
root.Set("buckets", buckets.release());
+ root.SetInteger("pid", GetCurrentProcId());
serializer.Serialize(root);
}
« no previous file with comments | « no previous file | tools/perf/perf_tools/histogram.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698