Index: runtime/vm/tags.cc |
diff --git a/runtime/vm/tags.cc b/runtime/vm/tags.cc |
index 0a82be3b7b8e134e482ffedc56a1972f45fc74d0..c90fe0643b089651f693b99ddc748127a584b2b3 100644 |
--- a/runtime/vm/tags.cc |
+++ b/runtime/vm/tags.cc |
@@ -127,6 +127,9 @@ int64_t VMTagCounters::count(uword tag) { |
void VMTagCounters::PrintToJSONObject(JSONObject* obj) { |
+ if (!FLAG_support_service) { |
+ return; |
+ } |
{ |
JSONArray arr(obj, "names"); |
for (intptr_t i = 1; i < VMTag::kNumVMTags; i++) { |