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

Unified Diff: runtime/vm/program_visitor.cc

Issue 2992893002: Reapply "[vm] Don't enable the profiler by default. Enable the profiler at startup with --observe, … (Closed)
Patch Set: native symbol resolver Created 3 years, 4 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/profiler_test.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/program_visitor.cc
diff --git a/runtime/vm/program_visitor.cc b/runtime/vm/program_visitor.cc
index 256c9db84f5d8f233c5d0427f1b7b24000492a1a..14affdd5fa52d4d744e2fbacabf645c51475c55b 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();
- }
+#if defined(PRODUCT)
+ // Reduces binary size but obfuscates profiler results.
+ DedupInstructions();
+#endif
}
} // namespace dart
« no previous file with comments | « 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