Index: runtime/vm/heap.cc |
diff --git a/runtime/vm/heap.cc b/runtime/vm/heap.cc |
index 7bbaccf6e4cdc4b8a4bca730f775e9e34910d608..47f0244e717b536213e1b9f67a57ab2dbf3ea688 100644 |
--- a/runtime/vm/heap.cc |
+++ b/runtime/vm/heap.cc |
@@ -731,11 +731,13 @@ void Heap::RecordAfterGC(Space space) { |
stats_.after_.old_ = old_space_.GetCurrentUsage(); |
ASSERT((space == kNew && gc_new_space_in_progress_) || |
(space == kOld && gc_old_space_in_progress_)); |
+#ifndef PRODUCT |
if (FLAG_support_service && Service::gc_stream.enabled()) { |
ServiceEvent event(Isolate::Current(), ServiceEvent::kGC); |
event.set_gc_stats(&stats_); |
Service::HandleEvent(&event); |
} |
+#endif // !PRODUCT |
} |