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

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 1127383008: Fix CompilerStats info (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 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_inliner.cc
===================================================================
--- runtime/vm/flow_graph_inliner.cc (revision 45740)
+++ runtime/vm/flow_graph_inliner.cc (working copy)
@@ -681,9 +681,7 @@
bool in_cache;
ParsedFunction* parsed_function;
{
- TimerScope timer(FLAG_compiler_stats,
- &CompilerStats::graphinliner_parse_timer,
- isolate());
+ CSTAT_TIMER_SCOPE(isolate(), graphinliner_parse_timer);
const Error& error = Error::Handle(Z,
Compiler::EnsureUnoptimizedCode(Thread::Current(), function));
if (!error.IsNull()) {
@@ -707,9 +705,7 @@
builder.SetInitialBlockId(caller_graph_->max_block_id());
FlowGraph* callee_graph;
{
- TimerScope timer(FLAG_compiler_stats,
- &CompilerStats::graphinliner_build_timer,
- isolate());
+ CSTAT_TIMER_SCOPE(isolate(), graphinliner_build_timer);
callee_graph = builder.BuildGraph();
}
@@ -763,9 +759,7 @@
block_scheduler.AssignEdgeWeights();
{
- TimerScope timer(FLAG_compiler_stats,
- &CompilerStats::graphinliner_ssa_timer,
- isolate());
+ CSTAT_TIMER_SCOPE(isolate(), graphinliner_ssa_timer);
// Compute SSA on the callee graph, catching bailouts.
callee_graph->ComputeSSA(caller_graph_->max_virtual_register_number(),
param_stubs);
@@ -773,9 +767,7 @@
}
{
- TimerScope timer(FLAG_compiler_stats,
- &CompilerStats::graphinliner_opt_timer,
- isolate());
+ CSTAT_TIMER_SCOPE(isolate(), graphinliner_opt_timer);
// TODO(zerny): Do more optimization passes on the callee graph.
FlowGraphOptimizer optimizer(callee_graph);
optimizer.ApplyICData();
@@ -953,9 +945,7 @@
}
void InlineCall(InlinedCallData* call_data) {
- TimerScope timer(FLAG_compiler_stats,
- &CompilerStats::graphinliner_subst_timer,
- Isolate::Current());
+ CSTAT_TIMER_SCOPE(Isolate::Current(), graphinliner_subst_timer);
FlowGraph* callee_graph = call_data->callee_graph;
TargetEntryInstr* callee_entry =
callee_graph->graph_entry()->normal_entry();

Powered by Google App Engine
This is Rietveld 408576698