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

Unified Diff: src/hydrogen.cc

Issue 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/hydrogen.h ('k') | src/hydrogen-gvn.h » ('j') | src/lithium-inl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index e85e16a6386b28f93ff661421cd8786ed8eb2608..00a56160022eb2d7fbe033ffee020d2fbbda5da9 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -12406,15 +12406,20 @@ void HStatistics::Initialize(CompilationInfo* info) {
}
-void HStatistics::Print() {
- PrintF("Timing results:\n");
+void HStatistics::Print(const char* stats_name) {
+ PrintF("\n"
+ "----------------------------------------"
+ "----------------------------------------\n"
+ "--- %s timing results:\n"
+ "----------------------------------------"
+ "----------------------------------------\n", stats_name);
base::TimeDelta sum;
for (int i = 0; i < times_.length(); ++i) {
sum += times_[i];
}
for (int i = 0; i < names_.length(); ++i) {
- PrintF("%32s", names_[i]);
+ PrintF("%33s", names_[i]);
double ms = times_[i].InMillisecondsF();
double percent = times_[i].PercentOf(sum);
PrintF(" %8.3f ms / %4.1f %% ", ms, percent);
@@ -12425,25 +12430,28 @@ void HStatistics::Print() {
}
PrintF("----------------------------------------"
- "---------------------------------------\n");
+ "----------------------------------------\n");
base::TimeDelta total = create_graph_ + optimize_graph_ + generate_code_;
- PrintF("%32s %8.3f ms / %4.1f %% \n",
+ PrintF("%33s %8.3f ms / %4.1f %% \n",
"Create graph",
create_graph_.InMillisecondsF(),
create_graph_.PercentOf(total));
- PrintF("%32s %8.3f ms / %4.1f %% \n",
+ PrintF("%33s %8.3f ms / %4.1f %% \n",
"Optimize graph",
optimize_graph_.InMillisecondsF(),
optimize_graph_.PercentOf(total));
- PrintF("%32s %8.3f ms / %4.1f %% \n",
+ PrintF("%33s %8.3f ms / %4.1f %% \n",
"Generate and install code",
generate_code_.InMillisecondsF(),
generate_code_.PercentOf(total));
PrintF("----------------------------------------"
- "---------------------------------------\n");
- PrintF("%32s %8.3f ms (%.1f times slower than full code gen)\n",
+ "----------------------------------------\n");
+ PrintF("%33s %8.3f ms %9u bytes\n",
"Total",
total.InMillisecondsF(),
+ total_size_);
+ PrintF("%33s (%.1f times slower than full code gen)\n",
+ "",
total.TimesOf(full_code_gen_));
double source_size_in_kb = static_cast<double>(source_size_) / 1024;
@@ -12453,7 +12461,7 @@ void HStatistics::Print() {
double normalized_size_in_kb = source_size_in_kb > 0
? total_size_ / 1024 / source_size_in_kb
: 0;
- PrintF("%32s %8.3f ms %7.3f kB allocated\n",
+ PrintF("%33s %8.3f ms %7.3f kB allocated\n",
"Average per kB source",
normalized_time, normalized_size_in_kb);
}
« no previous file with comments | « src/hydrogen.h ('k') | src/hydrogen-gvn.h » ('j') | src/lithium-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698