@@ -92,16 +92,6 @@ class DataAggregator : public DataReader {
9292 uint64_t Addr;
9393 };
9494
95- // / Used for parsing specific pre-aggregated input files.
96- struct AggregatedLBREntry {
97- enum Type : char { BRANCH = 0 , FT, FT_EXTERNAL_ORIGIN, TRACE };
98- Location From;
99- Location To;
100- uint64_t Count;
101- uint64_t Mispreds;
102- Type EntryType;
103- };
104-
10595 struct Trace {
10696 uint64_t From;
10797 uint64_t To;
@@ -131,7 +121,6 @@ class DataAggregator : public DataReader {
131121 // / and use them later for processing and assigning profile.
132122 std::unordered_map<Trace, TakenBranchInfo, TraceHash> BranchLBRs;
133123 std::unordered_map<Trace, FTInfo, TraceHash> FallthroughLBRs;
134- std::vector<AggregatedLBREntry> AggregatedLBRs;
135124 std::unordered_map<uint64_t , uint64_t > BasicSamples;
136125 std::vector<PerfMemSample> MemSamples;
137126
@@ -223,11 +212,6 @@ class DataAggregator : public DataReader {
223212 uint64_t NumTraces{0 };
224213 uint64_t NumInvalidTraces{0 };
225214 uint64_t NumLongRangeTraces{0 };
226- // / Specifies how many samples were recorded in cold areas if we are dealing
227- // / with profiling data collected in a bolted binary. For LBRs, incremented
228- // / for the source of the branch to avoid counting cold activity twice (one
229- // / for source and another for destination).
230- uint64_t NumColdSamples{0 };
231215 uint64_t NumTotalSamples{0 };
232216
233217 // / Looks into system PATH for Linux Perf and set up the aggregator to use it
@@ -416,14 +400,7 @@ class DataAggregator : public DataReader {
416400 // / F 41be90 41be90 4
417401 // / B 4b1942 39b57f0 3 0
418402 // / B 4b196f 4b19e0 2 0
419- void parsePreAggregated ();
420-
421- // / Parse the full output of pre-aggregated LBR samples generated by
422- // / an external tool.
423- std::error_code parsePreAggregatedLBRSamples ();
424-
425- // / Process parsed pre-aggregated data.
426- void processPreAggregated ();
403+ std::error_code parsePreAggregated ();
427404
428405 // / If \p Address falls into the binary address space based on memory
429406 // / mapping info \p MMI, then adjust it for further processing by subtracting
@@ -486,7 +463,6 @@ class DataAggregator : public DataReader {
486463 void dump (const PerfMemSample &Sample) const ;
487464
488465 // / Profile diagnostics print methods
489- void printColdSamplesDiagnostic () const ;
490466 void printLongRangeTracesDiagnostic () const ;
491467 void printBranchSamplesDiagnostics () const ;
492468 void printBasicSamplesDiagnostics (uint64_t OutOfRangeSamples) const ;
0 commit comments