Changeset 8d62360 in rtems-testing


Ignore:
Timestamp:
Sep 1, 2011, 10:32:29 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
331f963
Parents:
9cd7fc9
Message:

2011-09-01 Pawel Zagorski <pzagor@…>

PR 1909/testing

  • ReportsHtml?.cc: Add branch taken and not taken count columns.
Location:
covoar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • covoar/ChangeLog

    r9cd7fc9 r8d62360  
     12011-09-01      Pawel Zagorski <pzagor@agh.edu.pl>
     2
     3        PR 1909/testing
     4        * ReportsHtml.cc: Add branch taken and not taken count columns.
     5
    162011-08-31      Pawel Zagorski <pzagor@agh.edu.pl>
    27
  • covoar/ReportsHtml.cc

    r9cd7fc9 r8d62360  
    204204        "<th class=\"table-sortable:numeric\" align=\"left\">Size </br>Bytes</th>\n"
    205205        "<th class=\"table-sortable:default\" align=\"left\">Reason</th>\n"
     206        "<th class=\"table-sortable:default\" align=\"left\">Taken / Not Taken</th>\n"
    206207        "<th class=\"table-filterable table-sortable:default\" align=\"left\">Classification</th>\n"
    207208        "<th class=\"table-sortable:default\" align=\"left\">Explanation</th>\n"
     
    509510    std::string                  temp;
    510511    int                          i;
     512    uint32_t                     bAddress = 0;
     513    uint32_t                     lowAddress = 0;
     514    Coverage::CoverageMapBase*   theCoverageMap = NULL;
    511515
    512516    // Mark the background color different for odd and even lines.
     
    561565      );
    562566
     567    // Taken / Not taken counts
     568    lowAddress = rangePtr->lowAddress;
     569    bAddress = symbolPtr->second.baseAddress;
     570    theCoverageMap = symbolPtr->second.unifiedCoverageMap;
     571    fprintf(
     572      report,
     573      "<td class=\"covoar-td\" align=\"center\">%d / %d</td>\n",
     574      theCoverageMap->getWasTaken( lowAddress - bAddress ),
     575      theCoverageMap->getWasNotTaken( lowAddress - bAddress )
     576    );
     577
    563578    // See if an explanation is available and write the Classification and
    564579    // the Explination Columns.
    565580    explanation = AllExplanations->lookupExplanation( rangePtr->lowSourceLine );
    566581    if ( !explanation ) {
    567       // Write Classification
     582      // Write Classificationditr->second.baseAddress
    568583      fprintf(
    569584        report,
Note: See TracChangeset for help on using the changeset viewer.