From f7e2c254dfa27b2e9d5ae43b092b5af661dddca3 Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Fri, 18 Mar 2016 23:43:04 -0500 Subject: [PATCH] Improve formatting - line up cols --- samples/1_Utils/hipBusBandwidth/ResultDatabase.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/samples/1_Utils/hipBusBandwidth/ResultDatabase.cpp b/samples/1_Utils/hipBusBandwidth/ResultDatabase.cpp index 7d2f3aef84..b6ca68e571 100644 --- a/samples/1_Utils/hipBusBandwidth/ResultDatabase.cpp +++ b/samples/1_Utils/hipBusBandwidth/ResultDatabase.cpp @@ -278,7 +278,8 @@ void ResultDatabase::DumpSummary(ostream &out) { vector sorted(results); - int testW = 15 ; + const int testNameW = 24 ; + const int attW = 15; const int fieldW = 9; sort(sorted.begin(), sorted.end()); @@ -287,8 +288,9 @@ void ResultDatabase::DumpSummary(ostream &out) // TODO: in big parallel runs, the "trials" are the procs // and we really don't want to print them all out.... - out << setw(testW) << "test\t" << setw(fieldW) - << "atts\t" + out << setw(testNameW) << "test\t" + << setw(attW) << "atts\t" + << setw(fieldW) << "units\t" << "median\t" << "mean\t" @@ -300,9 +302,9 @@ void ResultDatabase::DumpSummary(ostream &out) for (int i=0; i