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

Unified Diff: runtime/vm/metrics.cc

Issue 2146713004: More changes to use #ifndef PRODUCT ... #endif explicitly instead of relying on compiler magic. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « runtime/vm/metrics.h ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « runtime/vm/metrics.h ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698