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

Unified Diff: runtime/vm/compiler.cc

Issue 11251002: Print time when tracing compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 13984)
+++ runtime/vm/compiler.cc (working copy)
@@ -438,6 +438,8 @@
}
if (setjmp(*jump.Set()) == 0) {
TIMERSCOPE(time_compilation);
+ Timer per_compile_timer(FLAG_trace_compiler, "Compilation time");
+ per_compile_timer.Start();
ParsedFunction* parsed_function = new ParsedFunction(function);
if (FLAG_trace_compiler) {
OS::Print("Compiling %sfunction: '%s' @ token %"Pd"\n",
@@ -462,11 +464,13 @@
}
ASSERT(success);
+ per_compile_timer.Stop();
if (FLAG_trace_compiler) {
- OS::Print("--> '%s' entry: %#"Px"\n",
+ OS::Print("--> '%s' entry: %#"Px" time: %"Pd64" us\n",
function.ToFullyQualifiedCString(),
- Code::Handle(function.CurrentCode()).EntryPoint());
+ Code::Handle(function.CurrentCode()).EntryPoint(),
+ per_compile_timer.TotalElapsedTime());
}
if (Isolate::Current()->debugger()->IsActive()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698