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

Unified Diff: runtime/vm/compiler.cc

Issue 137483010: Add more timing information in the VM to track time spent is dart code Vs native code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 32362)
+++ runtime/vm/compiler.cc (working copy)
@@ -259,9 +259,9 @@
if (optimized && !function.IsOptimizable()) {
return false;
}
- TimerScope timer(FLAG_compiler_stats, &CompilerStats::codegen_timer);
+ Isolate* isolate = Isolate::Current();
+ TimerScope timer(FLAG_compiler_stats, &CompilerStats::codegen_timer, isolate);
bool is_compiled = false;
- Isolate* isolate = Isolate::Current();
HANDLESCOPE(isolate);
isolate->set_cha_used(false);
@@ -354,7 +354,8 @@
// Inlining (mutates the flow graph)
if (FLAG_use_inlining) {
TimerScope timer(FLAG_compiler_stats,
- &CompilerStats::graphinliner_timer);
+ &CompilerStats::graphinliner_timer,
+ isolate);
// Propagate types to create more inlining opportunities.
FlowGraphTypePropagator::Propagate(flow_graph);
DEBUG_ASSERT(flow_graph->VerifyUseLists());
@@ -751,7 +752,7 @@
return Error::null();
}
if (setjmp(*jump.Set()) == 0) {
- TIMERSCOPE(time_compilation);
+ TIMERSCOPE(isolate, time_compilation);
Timer per_compile_timer(FLAG_trace_compiler, "Compilation time");
per_compile_timer.Start();
ParsedFunction* parsed_function =

Powered by Google App Engine
This is Rietveld 408576698