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

Unified Diff: runtime/vm/pages.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/vm/object_test.cc ('k') | runtime/vm/parser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/pages.cc
diff --git a/runtime/vm/pages.cc b/runtime/vm/pages.cc
index 937d7bc1094800f5b76e04a2f6f299bffa0c3ef7..caea245f67de75df0201fe0dd9155d3adcabc02e 100644
--- a/runtime/vm/pages.cc
+++ b/runtime/vm/pages.cc
@@ -673,6 +673,9 @@ void PageSpace::WriteProtect(bool read_only, bool include_code_pages) {
void PageSpace::PrintToJSONObject(JSONObject* object) const {
+ if (!FLAG_support_service) {
+ return;
+ }
Isolate* isolate = Isolate::Current();
ASSERT(isolate != NULL);
JSONObject space(object, "old");
@@ -713,6 +716,9 @@ class HeapMapAsJSONVisitor : public ObjectVisitor {
void PageSpace::PrintHeapMapToJSONStream(
Isolate* isolate, JSONStream* stream) const {
+ if (!FLAG_support_service) {
+ return;
+ }
JSONObject heap_map(stream);
heap_map.AddProperty("type", "HeapMap");
heap_map.AddProperty("freeClassId",
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/parser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698