From 00f6a8903b21a7dcb6b9ee9fa86cc468e0ea4ef0 Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Mon, 24 Jun 2013 13:07:20 +0000 Subject: [PATCH] Fix HStatistics::Print() output to fit into 80 columns. BUG= R=danno@chromium.org Review URL: https://codereview.chromium.org/17572006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15289 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/hydrogen.cc b/src/hydrogen.cc index 486075c..546f02a 100644 --- a/src/hydrogen.cc +++ b/src/hydrogen.cc @@ -11453,10 +11453,10 @@ void HStatistics::Print() { } for (int i = 0; i < names_.length(); ++i) { - PrintF("%30s", names_[i]); + PrintF("%32s", names_[i]); double ms = static_cast(timing_[i]) / 1000; double percent = static_cast(timing_[i]) * 100 / sum; - PrintF(" - %8.3f ms / %4.1f %% ", ms, percent); + PrintF(" %8.3f ms / %4.1f %% ", ms, percent); unsigned size = sizes_[i]; double size_percent = static_cast(size) * 100 / total_size_; @@ -11466,21 +11466,21 @@ void HStatistics::Print() { PrintF("----------------------------------------" "---------------------------------------\n"); int64_t total = create_graph_ + optimize_graph_ + generate_code_; - PrintF("%30s - %8.3f ms / %4.1f %% \n", + PrintF("%32s %8.3f ms / %4.1f %% \n", "Create graph", static_cast(create_graph_) / 1000, static_cast(create_graph_) * 100 / total); - PrintF("%30s - %8.3f ms / %4.1f %% \n", + PrintF("%32s %8.3f ms / %4.1f %% \n", "Optimize graph", static_cast(optimize_graph_) / 1000, static_cast(optimize_graph_) * 100 / total); - PrintF("%30s - %8.3f ms / %4.1f %% \n", + PrintF("%32s %8.3f ms / %4.1f %% \n", "Generate and install code", static_cast(generate_code_) / 1000, static_cast(generate_code_) * 100 / total); PrintF("----------------------------------------" "---------------------------------------\n"); - PrintF("%30s - %8.3f ms (%.1f times slower than full code gen)\n", + PrintF("%32s %8.3f ms (%.1f times slower than full code gen)\n", "Total", static_cast(total) / 1000, static_cast(total) / full_code_gen_); @@ -11492,7 +11492,7 @@ void HStatistics::Print() { double normalized_size_in_kb = source_size_in_kb > 0 ? total_size_ / 1024 / source_size_in_kb : 0; - PrintF("%30s - %8.3f ms %7.3f kB allocated\n", + PrintF("%32s %8.3f ms %7.3f kB allocated\n", "Average per kB source", normalized_time, normalized_size_in_kb); } -- 2.7.4