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

Unified Diff: runtime/vm/class_table.cc

Issue 1660063002: Remove many features when building product mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/lib/vmservice.cc ('k') | runtime/vm/code_generator.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 52786ee2b71faa62fc1ba42accf3e0bc2bd762a3..c9105ae549b8d8018498a6143450a29746459bb7 100644
--- a/runtime/vm/class_table.cc
+++ b/runtime/vm/class_table.cc
@@ -224,6 +224,9 @@ void ClassTable::Print() {
void ClassTable::PrintToJSONObject(JSONObject* object) {
+ if (!FLAG_support_service) {
+ return;
+ }
Class& cls = Class::Handle();
object->AddProperty("type", "ClassList");
{
@@ -317,6 +320,9 @@ void ClassHeapStats::UpdatePromotedAfterNewGC() {
void ClassHeapStats::PrintToJSONObject(const Class& cls,
JSONObject* obj) const {
+ if (!FLAG_support_service) {
+ return;
+ }
obj->AddProperty("type", "ClassHeapStats");
obj->AddProperty("class", cls);
{
@@ -472,6 +478,9 @@ intptr_t ClassTable::SizeOffsetFor(intptr_t cid, bool is_new_space) {
void ClassTable::AllocationProfilePrintJSON(JSONStream* stream) {
+ if (!FLAG_support_service) {
+ return;
+ }
Isolate* isolate = Isolate::Current();
ASSERT(isolate != NULL);
Heap* heap = isolate->heap();
« no previous file with comments | « runtime/lib/vmservice.cc ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698