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

Unified Diff: src/compiler/graph-visualizer.cc

Issue 2649513003: [turbolizer] distinguish optimization attempts (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/graph-visualizer.cc
diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc
index 1043c91e2a7e01c33ad206b0d422abb553360451..371eff9f5cb52f9ae364aa02f40490c25f3a1a51 100644
--- a/src/compiler/graph-visualizer.cc
+++ b/src/compiler/graph-visualizer.cc
@@ -34,9 +34,15 @@ std::unique_ptr<char[]> GetVisualizerLogFileName(CompilationInfo* info,
EmbeddedVector<char, 256> filename(0);
std::unique_ptr<char[]> debug_name = info->GetDebugName();
if (strlen(debug_name.get()) > 0) {
- SNPrintF(filename, "turbo-%s", debug_name.get());
+ if (info->has_shared_info()) {
+ int attempt = info->shared_info()->opt_count();
+ SNPrintF(filename, "turbo-%s-%i", debug_name.get(), attempt);
+ } else {
+ SNPrintF(filename, "turbo-%s", debug_name.get());
+ }
} else if (info->has_shared_info()) {
- SNPrintF(filename, "turbo-%p", static_cast<void*>(info));
+ int attempt = info->shared_info()->opt_count();
+ SNPrintF(filename, "turbo-%p-%i", static_cast<void*>(info), attempt);
} else {
SNPrintF(filename, "turbo-none-%s", phase);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698