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

Unified Diff: src/isolate.cc

Issue 669053002: [turbofan] split compilation stats off from HStatistics and track high water marks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
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();
}

Powered by Google App Engine
This is Rietveld 408576698