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

Unified Diff: runtime/vm/program_visitor.cc

Issue 2989093002: [vm] Don't enable the profiler by default. Enable the profiler at startup with --observe, or later … (Closed)
Patch Set: . Created 3 years, 5 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
Index: runtime/vm/program_visitor.cc
diff --git a/runtime/vm/program_visitor.cc b/runtime/vm/program_visitor.cc
index 256c9db84f5d8f233c5d0427f1b7b24000492a1a..129792dd187fff334c725de5de43d81d58607361 100644
--- a/runtime/vm/program_visitor.cc
+++ b/runtime/vm/program_visitor.cc
@@ -598,10 +598,10 @@ void ProgramVisitor::Dedup() {
DedupCodeSourceMaps();
DedupLists();
- if (!FLAG_profiler) {
- // Reduces binary size but obfuscates profiler results.
- DedupInstructions();
- }
+#ifdef PRODUCT
zra 2017/07/31 15:03:11 if defined(PRODUCT)
rmacnak 2017/07/31 21:12:13 Done.
+ // Reduces binary size but obfuscates profiler results.
+ DedupInstructions();
+#endif
}
} // namespace dart
« runtime/vm/profiler.cc ('K') | « runtime/vm/profiler_test.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698