Changeset d0689b5 in rtems-testing


Ignore:
Timestamp:
May 13, 2010, 2:18:07 PM (9 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
e2fcf9b
Parents:
da04b38
Message:

2010-05-13 Jennifer Averett <Jennifer.Averett@…>

Location:
rtems-coverage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    rda04b38 rd0689b5  
     12010-05-13      Jennifer Averett <Jennifer.Averett@OARcorp.com>
     2
     3        * ReportsBase.cc, ReportsHtml.cc: Added correct table structure for
     4        Summary table.
     5
    162010-05-13      Joel Sherrill <joel.sherrilL@OARcorp.com>
    27
  • rtems-coverage/ReportsBase.cc

    rda04b38 rd0689b5  
    439439
    440440    reportName = "symbolSummary" + reports->ReportExtension();
    441     reports->WriteSizeReport(reportName.c_str() );
     441    reports->WriteSymbolSummaryReport(reportName.c_str() );
    442442  }
    443443
  • rtems-coverage/ReportsHtml.cc

    rda04b38 rd0689b5  
    223223    fprintf(
    224224      aFile,
    225       "<table class=\"covoar-table\">\n"
    226       "<tbody class=\"covoar-tbody\">\n"
    227       "<tr class=\"covoar-tr covoar-tr-first\">\n"
    228       "<th class=\"covoar-th\">Size</th>\n"
    229       "<th class=\"covoar-th\">Symbol</th>\n"
    230       "<th class=\"covoar-th\">File</th>\n"
     225      "<table class=\"covoar table-autosort:0 table-autofilter"
     226           TABLE_HEADER_CLASS "\">\n"
     227      "<thead>\n"
     228      "<tr>\n"
     229      "<th class=\"table-sortable:default\" align=\"center\">Symbol</th>\n"
     230      "<th class=\"table-sortable:numeric\" align=\"center\">Total</br>Size</br>Bytes</th>\n"
     231      "<th class=\"table-sortable:numeric\" align=\"center\">Total</br>Size</br>Instr</th>\n"
     232      "<th class=\"table-sortable:default\" align=\"center\">#</br>Ranges</th>\n"
     233      "<th class=\"table-sortable:numeric\" align=\"center\">Uncovered</br>Size</br>Bytes</th>\n"
     234      "<th class=\"table-sortable:numeric\" align=\"center\">Uncovered</br>Size</br>Instr</th>\n"
     235      "<th class=\"table-sortable:default\" align=\"center\">#</br>Branches</th>\n"
     236      "<th class=\"table-sortable:default\" align=\"center\">#</br>Always</br>Taken</th>\n"
     237      "<th class=\"table-sortable:default\" align=\"center\">#</br>Never</br>Taken</th>\n"
     238      "<th class=\"table-sortable:default\" align=\"center\">Percent</br>Uncovered</br>Instructions</th>\n"
     239      "<th class=\"table-sortable:default\" align=\"center\">Percent</br>Uncovered</br>Bytes</th>\n"
    231240      "</tr>\n"
     241      "</thead>\n"
    232242    );
    233243    return aFile;
     
    449459    fprintf(
    450460      report,
    451       "<td class=\"covoar-td\" align=\"center\"></td>\n"
     461      "<td class=\"covoar-td\" align=\"center\">???</td>\n"
    452462     );
    453463     
     
    455465    fprintf(
    456466      report,
    457       "<td class=\"covoar-td\" align=\"center\"></td>\n"
     467      "<td class=\"covoar-td\" align=\"center\">???</td>\n"
    458468    );
    459469
     
    461471    fprintf(
    462472      report,
    463       "<td class=\"covoar-td\" align=\"center\"></td>\n"
     473      "<td class=\"covoar-td\" align=\"center\">???</td>\n"
    464474    );
    465475
     
    467477    fprintf(
    468478      report,
    469       "<td class=\"covoar-td\" align=\"center\">NONE</td>\n"
     479      "<td class=\"covoar-td\" align=\"center\">Unknown</td>\n"
    470480      "<td class=\"covoar-td\" align=\"center\">"
    471       "<a href=\"NotReferenced.html\">Explanation</a></td>\n"
     481      "<a href=\"NotReferenced.html\">No data</a></td>\n"
    472482    );
    473483    WriteExplationFile( "NotReferenced.html", &explanation );
     
    604614      fprintf( report, "<tr class=\"covoar-tr covoar-tr-odd\">\n");
    605615
    606     // size
    607     fprintf(
    608       report,
    609       "<td class=\"covoar-td\" align=\"center\">%d</td>\n",
    610       range->highAddress - range->lowAddress + 1
    611     );
    612 
    613616    // symbol
    614617    fprintf(
     
    618621    );
    619622
    620     // file
    621     fprintf(
    622       report,
    623       "<td class=\"covoar-td\" align=\"center\">%s</td>\n",     
    624       range->lowSourceLine.c_str()
     623    // Total Size in Bytes
     624    fprintf(
     625      report,
     626      "<td class=\"covoar-td\" align=\"center\">XXX</td>\n"
     627    );
     628
     629    // Total Size in Instructions
     630    fprintf(
     631      report,
     632      "<td class=\"covoar-td\" align=\"center\">XXX</td>\n"
     633    );
     634
     635    // Total Uncovered Ranges
     636    fprintf(
     637      report,
     638      "<td class=\"covoar-td\" align=\"center\">%d</td>\n",     
     639      symbol->second.uncoveredRanges->set.size()
     640    );
     641
     642    // Uncovered Size in Bytes
     643    fprintf(
     644      report,
     645      "<td class=\"covoar-td\" align=\"center\">XXX</td>\n"
     646    );
     647
     648    // Uncovered Size in Instructions
     649    fprintf(
     650      report,
     651      "<td class=\"covoar-td\" align=\"center\">XXX</td>\n"
     652    );
     653
     654    // Total number of branches
     655    fprintf(
     656      report,
     657      "<td class=\"covoar-td\" align=\"center\">%d</td>\n",     
     658      symbol->second.uncoveredBranches->set.size()
     659    );
     660
     661    // Total Always Taken
     662    fprintf(
     663      report,
     664      "<td class=\"covoar-td\" align=\"center\">XXX</td>\n"
     665    );
     666
     667    // Total Never Taken
     668    fprintf(
     669      report,
     670      "<td class=\"covoar-td\" align=\"center\">XXX</td>\n"
     671    );
     672
     673
     674    // % Uncovered Instructions
     675    fprintf(
     676      report,
     677      "<td class=\"covoar-td\" align=\"center\">XXX</td>\n"
     678    );
     679
     680    // % Uncovered Bytes
     681    fprintf(
     682      report,
     683      "<td class=\"covoar-td\" align=\"center\">XXX</td>\n"
    625684    );
    626685
     
    704763  )
    705764  {
    706     fprintf( aFile, "</tbody>\n" );
    707     fprintf( aFile, "</table>\n" );
    708     fprintf( aFile, "</pre>\n" );
    709     fprintf( aFile,"</body>\n");
    710     fprintf( aFile,"</html>");
    711 
    712     CloseFile( aFile );
     765    fprintf(
     766      aFile,
     767      TABLE_FOOTER
     768       "</tbody>\n"
     769      "</table>\n"
     770      "</pre>\n"
     771      "</body>\n"
     772      "</html>"
     773    );
     774
     775     CloseFile( aFile );
    713776  }
    714777
Note: See TracChangeset for help on using the changeset viewer.