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

Unified Diff: runtime/vm/class_table.cc

Issue 2117593002: Fuchsia: Initial check-in. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 6 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/class_table.h ('k') | runtime/vm/cpuinfo_fuchsia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_table.cc
diff --git a/runtime/vm/class_table.cc b/runtime/vm/class_table.cc
index 84b4e03e9168945fa3a81640a4ed1999f90deb82..4549fb882ef9ed557f8d46164ddfc7311fce3167 100644
--- a/runtime/vm/class_table.cc
+++ b/runtime/vm/class_table.cc
@@ -2,8 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#include "vm/atomic.h"
#include "vm/class_table.h"
+
+#include "vm/atomic.h"
#include "vm/flags.h"
#include "vm/freelist.h"
#include "vm/growable_array.h"
@@ -234,6 +235,7 @@ void ClassTable::Print() {
}
+#ifndef PRODUCT
void ClassTable::PrintToJSONObject(JSONObject* object) {
if (!FLAG_support_service) {
return;
@@ -250,6 +252,7 @@ void ClassTable::PrintToJSONObject(JSONObject* object) {
}
}
}
+#endif // PRODUCT
void ClassHeapStats::Initialize() {
@@ -329,6 +332,7 @@ void ClassHeapStats::UpdatePromotedAfterNewGC() {
}
+#ifndef PRODUCT
void ClassHeapStats::PrintToJSONObject(const Class& cls,
JSONObject* obj) const {
if (!FLAG_support_service) {
@@ -365,6 +369,7 @@ void ClassHeapStats::PrintToJSONObject(const Class& cls,
obj->AddProperty("promotedInstances", promoted_count);
obj->AddProperty("promotedBytes", promoted_size);
}
+#endif
void ClassTable::UpdateAllocatedNew(intptr_t cid, intptr_t size) {
@@ -491,6 +496,7 @@ intptr_t ClassTable::SizeOffsetFor(intptr_t cid, bool is_new_space) {
}
+#ifndef PRODUCT
void ClassTable::AllocationProfilePrintJSON(JSONStream* stream) {
if (!FLAG_support_service) {
return;
@@ -532,6 +538,7 @@ void ClassTable::AllocationProfilePrintJSON(JSONStream* stream) {
}
}
}
+#endif
void ClassTable::ResetAllocationAccumulators() {
« no previous file with comments | « runtime/vm/class_table.h ('k') | runtime/vm/cpuinfo_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698