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

Unified Diff: runtime/vm/flow_graph_compiler.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/flow_graph_compiler.cc
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index 6dadee8d3dba9245ef726b1499257b1f0eed07ca..d12d7a1f910bcbd27bd9f6bed8b4ae1d5de5ecb9 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -202,7 +202,11 @@ FlowGraphCompiler::FlowGraphCompiler(
ASSERT(assembler != NULL);
ASSERT(!list_class_.IsNull());
- bool stack_traces_only = !FLAG_profiler;
+#ifdef PRODUCT
zra 2017/07/31 15:03:11 ditto
rmacnak 2017/07/31 21:12:12 Done.
+ bool stack_traces_only = true;
zra 2017/07/31 15:03:11 const
+#else
+ bool stack_traces_only = false;
+#endif
code_source_map_builder_ = new (zone_)
CodeSourceMapBuilder(stack_traces_only, caller_inline_id,
inline_id_to_token_pos, inline_id_to_function);

Powered by Google App Engine
This is Rietveld 408576698