Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 6405115b9ff70daae2030c83d3caf8f6978e7782..41751db5021f40065f42a554aefc81e9c057a707 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1574,7 +1574,8 @@ void Isolate::Deinit() { |
heap_.mark_compact_collector()->EnsureSweepingCompleted(); |
} |
- if (FLAG_hydrogen_stats) GetHStatistics()->Print(); |
+ if (FLAG_turbo_stats) GetTStatistics()->Print("TurboFan"); |
+ if (FLAG_hydrogen_stats) GetHStatistics()->Print("Hydrogen"); |
if (FLAG_print_deopt_stress) { |
PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); |
@@ -2120,6 +2121,12 @@ HStatistics* Isolate::GetHStatistics() { |
} |
+HStatistics* Isolate::GetTStatistics() { |
+ if (tstatistics() == NULL) set_tstatistics(new HStatistics()); |
+ return tstatistics(); |
+} |
+ |
+ |
HTracer* Isolate::GetHTracer() { |
if (htracer() == NULL) set_htracer(new HTracer(id())); |
return htracer(); |