From b02600a6bbc4d0524b731e504c91bc293d70a354 Mon Sep 17 00:00:00 2001 From: Alex White Date: Fri, 2 Apr 2021 16:21:43 -0500 Subject: covoar: Split symbols by symbol set This changes the way covoar organizes the symbols. Instead of treating all symbols as one set, covoar is now aware of multiple symbol sets and tracks statistics for each set. It now also generates reports for each symbol set. This change relieves the caller of covoar of the reponsibility of managing the symbol sets. As a result, covoar can minimize the work done for each symbol set, yielding a significant speedup. Updates #4374 --- tester/covoar/ReportsText.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'tester/covoar/ReportsText.h') diff --git a/tester/covoar/ReportsText.h b/tester/covoar/ReportsText.h index 9ae87d4..cf8a813 100644 --- a/tester/covoar/ReportsText.h +++ b/tester/covoar/ReportsText.h @@ -21,7 +21,7 @@ namespace Coverage { class ReportsText: public ReportsBase { public: - ReportsText( time_t timestamp ); + ReportsText( time_t timestamp, std::string symbolSetName ); virtual ~ReportsText(); /*! @@ -83,7 +83,8 @@ class ReportsText: public ReportsBase { virtual bool PutBranchEntry( FILE* report, unsigned int number, - Coverage::DesiredSymbols::symbolSet_t::iterator symbolPtr, + const std::string& symbolName, + const SymbolInformation& symbolInfo, Coverage::CoverageRanges::ranges_t::iterator rangePtr ); @@ -99,7 +100,8 @@ class ReportsText: public ReportsBase { virtual bool PutCoverageLine( FILE* report, unsigned int number, - Coverage::DesiredSymbols::symbolSet_t::iterator ditr, + const std::string& symbolName, + const SymbolInformation& symbolInfo, Coverage::CoverageRanges::ranges_t::iterator ritr ); @@ -107,7 +109,7 @@ class ReportsText: public ReportsBase { virtual bool PutSizeLine( FILE* report, unsigned int number, - Coverage::DesiredSymbols::symbolSet_t::iterator symbol, + const std::string& symbolName, Coverage::CoverageRanges::ranges_t::iterator range ); @@ -115,7 +117,8 @@ class ReportsText: public ReportsBase { virtual bool PutSymbolSummaryLine( FILE* report, unsigned int number, - Coverage::DesiredSymbols::symbolSet_t::iterator symbol + const std::string& symbolName, + const SymbolInformation& symbolInfo ); }; -- cgit v1.2.3