change log for gcc-testing (2010-05-14)

rtems-vc at rtems.org rtems-vc at rtems.org
Fri May 14 19:10:02 UTC 2010


 *jennifer*:
2010-05-14	Jennifer Averett <Jennifer.Averett at OARcorp.com>

	* ReportsText.cc: Modified text report data to match html report data.

M  1.251  rtems-coverage/ChangeLog
M    1.7  rtems-coverage/ReportsText.cc

diff -u gcc-testing/rtems-coverage/ChangeLog:1.250 gcc-testing/rtems-coverage/ChangeLog:1.251
--- gcc-testing/rtems-coverage/ChangeLog:1.250	Fri May 14 12:26:34 2010
+++ gcc-testing/rtems-coverage/ChangeLog	Fri May 14 13:49:57 2010
@@ -1,5 +1,9 @@
 2010-05-14	Jennifer Averett <Jennifer.Averett at OARcorp.com>
 
+	* ReportsText.cc: Modified text report data to match html report data.
+
+2010-05-14	Jennifer Averett <Jennifer.Averett at OARcorp.com>
+
 	* CoverageRanges.cc, CoverageRanges.h, DesiredSymbols.cc,
 	DesiredSymbols.h, ReportsBase.cc, ReportsBase.h, ReportsHtml.cc,
 	ReportsHtml.h, ReportsText.cc, ReportsText.h, covoar.cc, covoar.css:

diff -u gcc-testing/rtems-coverage/ReportsText.cc:1.6 gcc-testing/rtems-coverage/ReportsText.cc:1.7
--- gcc-testing/rtems-coverage/ReportsText.cc:1.6	Fri May 14 12:26:35 2010
+++ gcc-testing/rtems-coverage/ReportsText.cc	Fri May 14 13:49:57 2010
@@ -145,11 +145,12 @@
   fprintf(
     report,
     "============================================\n"
-    "Index         : %d\n"
-    "Symbol        : %s (0x%x)\n"
-    "Starting Line : %s (0x%x)\n"
-    "Ending Line   : %s (0x%x)\n"
-    "Size in Bytes : %d\n\n",
+    "Index                : %d\n"
+    "Symbol               : %s (0x%x)\n"
+    "Starting Line        : %s (0x%x)\n"
+    "Ending Line          : %s (0x%x)\n"
+    "Size in Bytes        : %d\n"
+    "Size in Instructions : %d\n\n",
     ritr->id,
     ditr->first.c_str(),
     ditr->second.baseAddress,
@@ -157,7 +158,8 @@
     ritr->lowAddress,
     ritr->highSourceLine.c_str(),
     ritr->highAddress,
-    ritr->highAddress - ritr->lowAddress + 1
+    ritr->highAddress - ritr->lowAddress + 1,
+    ritr->instructionCount
   );
 
   explanation = AllExplanations->lookupExplanation( ritr->lowSourceLine );
@@ -211,6 +213,43 @@
   Coverage::DesiredSymbols::symbolSet_t::iterator symbol
 )
 {
+  float uncoveredBytes;
+  float uncoveredInstructions;
+
+  if ( symbol->second.stats.sizeInInstructions == 0 )
+    uncoveredInstructions = 0;
+  else
+    uncoveredInstructions = (symbol->second.stats.uncoveredInstructions*100.0)/
+                            symbol->second.stats.sizeInInstructions;
+
+  if ( symbol->second.stats.sizeInBytes == 0 )
+    uncoveredBytes = 0;
+  else
+    uncoveredBytes = (symbol->second.stats.uncoveredBytes*100.0)/
+                     symbol->second.stats.sizeInBytes;
+
+  fprintf(
+    report,
+    "============================================\n"
+    "Symbol                            : %s\n"
+    "Total Size in Bytes               : %d\n"
+    "Total Size in Instructions        : %d\n"
+    "Total number Branches             : %d\n"
+    "Total Always Taken                : %d\n"
+    "Total Never Taken                 : %d\n"
+    "Percentage Uncovered Instructions : %.2f\n"
+    "Percentage Uncovered Bytes        : %.2f\n",
+    symbol->first.c_str(),
+    symbol->second.stats.sizeInBytes,
+    symbol->second.stats.sizeInInstructions,
+    symbol->second.stats.branchesNotExecuted +  symbol->second.stats.branchesExecuted,
+    symbol->second.stats.branchesAlwaysTaken,
+    symbol->second.stats.branchesNeverTaken,
+    uncoveredInstructions,
+    uncoveredBytes
+  );
+
+  fprintf(report, "============================================\n");
   return true;
 }
 



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100514/5b9f0ed7/attachment.html>


More information about the vc mailing list