Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 6caaf19c8a4ffed90ff61db56faf0fe5bb1ec563..5925166fa692bf320d61687a8ada0fddfca20d75 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -5,6 +5,7 @@ |
#include <stdlib.h> |
#include <fstream> // NOLINT(readability/streams) |
+#include <iostream> // NOLINT(readability/streams) |
#include "src/v8.h" |
@@ -16,6 +17,7 @@ |
#include "src/bootstrapper.h" |
#include "src/codegen.h" |
#include "src/compilation-cache.h" |
+#include "src/compilation-statistics.h" |
#include "src/cpu-profiler.h" |
#include "src/debug.h" |
#include "src/deoptimizer.h" |
@@ -1606,8 +1608,10 @@ void Isolate::Deinit() { |
heap_.mark_compact_collector()->EnsureSweepingCompleted(); |
} |
- if (FLAG_turbo_stats) GetTStatistics()->Print("TurboFan"); |
- if (FLAG_hydrogen_stats) GetHStatistics()->Print("Hydrogen"); |
+ if (tstatistics() != NULL) { |
+ std::cout << *tstatistics() << std::endl; |
+ } |
+ if (FLAG_hydrogen_stats) GetHStatistics()->Print(); |
if (FLAG_print_deopt_stress) { |
PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); |
@@ -2119,8 +2123,8 @@ HStatistics* Isolate::GetHStatistics() { |
} |
-HStatistics* Isolate::GetTStatistics() { |
- if (tstatistics() == NULL) set_tstatistics(new HStatistics()); |
+CompilationStatistics* Isolate::GetTStatistics() { |
+ if (tstatistics() == NULL) set_tstatistics(new CompilationStatistics()); |
return tstatistics(); |
} |