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

Unified Diff: src/isolate.cc

Issue 2053383002: Machine-readable TurboFan compiler statistics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code comments. Created 4 years, 6 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 | « src/flag-definitions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 035a626acd2eff1ba4439ae8b322a2fe3ba93af6..a2500c0a6d9e16dfb10ad75a866aea135854b7f3 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -2457,8 +2457,17 @@ void Isolate::UnlinkDeferredHandles(DeferredHandles* deferred) {
void Isolate::DumpAndResetCompilationStats() {
if (turbo_statistics() != nullptr) {
+ DCHECK(FLAG_turbo_stats || FLAG_turbo_stats_nvp);
+
OFStream os(stdout);
- os << *turbo_statistics() << std::endl;
+ if (FLAG_turbo_stats) {
+ AsPrintableStatistics ps = {*turbo_statistics(), false};
+ os << ps << std::endl;
+ }
+ if (FLAG_turbo_stats_nvp) {
+ AsPrintableStatistics ps = {*turbo_statistics(), true};
+ os << ps << std::endl;
+ }
}
if (hstatistics() != nullptr) hstatistics()->Print();
delete turbo_statistics_;
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698