@@ -53,10 +53,6 @@ static cl::alias
53
53
cl::desc (" Comma-delimited version of -perf-event" ),
54
54
cl::aliasopt(PerfEventFilter));
55
55
56
- static cl::opt<uint64_t >
57
- SamplePeriod (" sample-period" , cl::init(1 ),
58
- cl::desc(" The sampling period (-c) used for perf data" ));
59
-
60
56
extern cl::opt<std::string> PerfTraceFilename;
61
57
extern cl::opt<bool > ShowDisassemblyOnly;
62
58
extern cl::opt<bool > ShowSourceLocations;
@@ -1004,16 +1000,6 @@ void LBRPerfReader::parseSample(TraceStream &TraceIt, uint64_t Count) {
1004
1000
if (extractLBRStack (TraceIt, Sample->LBRStack )) {
1005
1001
warnIfMissingMMap ();
1006
1002
// Record LBR only samples by aggregation
1007
- // If a sampling period is given we can adjust the magnitude of sample
1008
- // counts to estimate the absolute magnitute.
1009
- if (SamplePeriod.getNumOccurrences ()) {
1010
- Count *= SamplePeriod;
1011
- // If counts are LBR-based, as opposed to IP-based, then the magnitude is
1012
- // now amplified by roughly the LBR stack size. By adjusting this down, we
1013
- // can produce LBR-based and IP-based profiles with comparable magnitudes.
1014
- if (!LeadingIPOnly && Sample->LBRStack .size () > 1 )
1015
- Count /= (Sample->LBRStack .size () - 1 );
1016
- }
1017
1003
AggregatedSamples[Hashable<PerfSample>(Sample)] += Count;
1018
1004
}
1019
1005
}
0 commit comments