Index: src/compiler.cc |
=================================================================== |
--- src/compiler.cc (revision 5952) |
+++ src/compiler.cc (working copy) |
@@ -123,6 +123,20 @@ |
function->PrintName(); |
PrintF(" / %" V8PRIxPTR, reinterpret_cast<intptr_t>(*function)); |
PrintF(" - took %0.3f ms]\n", ms); |
+ |
+ if (FLAG_trace_opt) { |
Kasper Lund
2010/12/09 11:51:51
Remove this check. FLAG_trace_opt is true at this
Karl Klose
2010/12/09 12:49:32
Done.
|
+ static double compilation_time = 0.0; |
+ static int compiled_functions =0; |
Kasper Lund
2010/12/09 11:51:51
=0 -> = 0
Karl Klose
2010/12/09 12:49:32
Done.
|
+ static int code_size = 0; |
+ |
+ compilation_time += ms; |
+ compiled_functions++; |
+ code_size += function->shared()->SourceSize(); |
+ PrintF("Compiled: %d functions with %d byte source size in %fms.\n", |
+ compiled_functions, |
+ code_size, |
+ compilation_time); |
+ } |
} |