Bug 715906 - remove TelemetryHistogram.histogram; r=taras
authorNathan Froyd <froydnj@mozilla.com>
Mon, 09 Jan 2012 12:47:35 -0500
changeset 85492 b55d3ffd5243d84cab563099255177ed01b17961
parent 85491 cd03664850edba20d4498cab12e03ea91fa0c3ac
child 85493 95ec5fc65854686d12dcba6df1b2722f345b134f
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstaras
bugs715906
milestone12.0a1
Bug 715906 - remove TelemetryHistogram.histogram; r=taras
toolkit/components/telemetry/Telemetry.cpp
--- a/toolkit/components/telemetry/Telemetry.cpp
+++ b/toolkit/components/telemetry/Telemetry.cpp
@@ -100,17 +100,16 @@ private:
 
 TelemetryImpl*  TelemetryImpl::sTelemetry = NULL;
 
 // A initializer to initialize histogram collection
 StatisticsRecorder gStatisticsRecorder;
 
 // Hardcoded probes
 struct TelemetryHistogram {
-  Histogram *histogram;
   const char *id;
   PRUint32 min;
   PRUint32 max;
   PRUint32 bucketCount;
   PRUint32 histogramType;
   const char *comment;
 };
 
@@ -122,17 +121,17 @@ struct TelemetryHistogram {
                    (min < max && bucket_count > 2 && min >= 1));
 
 #include "TelemetryHistograms.h"
 
 #undef HISTOGRAM
 
 const TelemetryHistogram gHistograms[] = {
 #define HISTOGRAM(id, min, max, bucket_count, histogram_type, comment) \
-  { NULL, NS_STRINGIFY(id), min, max, bucket_count, \
+  { NS_STRINGIFY(id), min, max, bucket_count, \
     nsITelemetry::HISTOGRAM_ ## histogram_type, comment },
 
 #include "TelemetryHistograms.h"
 
 #undef HISTOGRAM
 };
 
 bool