merge backout
authorDão Gottwald <dao@mozilla.com>
Wed, 11 Jan 2012 16:13:16 +0100
changeset 85511 4f007aadbf3ed0488bd17be379765e246cd3de5d
parent 85509 751ce658ce7397c9a2dedf5e6e84ac7877b28a0b (current diff)
parent 85510 745ab99fbd9b33a693e5c26111cca98353948b5a (diff)
child 85512 103460516db6451789c70480e60c1c167e44b046
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)
milestone12.0a1
merge backout
--- a/toolkit/components/telemetry/Telemetry.h
+++ b/toolkit/components/telemetry/Telemetry.h
@@ -99,44 +99,16 @@ public:
     AccumulateTimeDelta(id, start);
   }
 
 private:
   const TimeStamp start;
   MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER
 };
 
-template<ID id>
-class AutoCounter {
-public:
-  AutoCounter(PRUint32 counterStart = 0 MOZILLA_GUARD_OBJECT_NOTIFIER_PARAM)
-    : counter(counterStart)
-  {
-    MOZILLA_GUARD_OBJECT_NOTIFIER_INIT;
-  }
-
-  ~AutoCounter() {
-    Accumulate(id, counter);
-  }
-
-  // Prefix increment only, to encourage good habits.
-  void operator++() {
-    ++counter;
-  }
-
-  // Chaining doesn't make any sense, don't return anything.
-  void operator+=(int increment) {
-    counter += increment;
-  }
-
-private:
-  PRUint32 counter;
-  MOZILLA_DECL_USE_GUARD_OBJECT_NOTIFIER
-};
-
 /**
  * Records slow SQL statements for Telemetry reporting.
  * For privacy reasons, only prepared statements are reported.
  *
  * @param statement - offending SQL statement to record
  * @param dbName - DB filename; reporting is only done for whitelisted DBs
  * @param delay - execution time in milliseconds
  */