Index: runtime/vm/metrics.cc |
diff --git a/runtime/vm/metrics.cc b/runtime/vm/metrics.cc |
index 581ed826748566b5c2efa642b51ca371f5110f36..137042e124f974f4936721da98c1a9fb3a73bfae 100644 |
--- a/runtime/vm/metrics.cc |
+++ b/runtime/vm/metrics.cc |
@@ -67,6 +67,7 @@ Metric::~Metric() { |
} |
+#ifndef PRODUCT |
static const char* UnitString(intptr_t unit) { |
switch (unit) { |
case Metric::kCounter: return "counter"; |
@@ -97,6 +98,7 @@ void Metric::PrintJSON(JSONStream* stream) { |
double value_as_double = static_cast<double>(Value()); |
obj.AddProperty("value", value_as_double); |
} |
+#endif // !PRODUCT |
char* Metric::ValueToString(int64_t value, Unit unit) { |