Lines Matching +full:count +full:- +full:threshold
1 //=-- ProfilesummaryBuilder.cpp - Profile summary computation ---------------=//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
23 "profile-summary-contextless", cl::Hidden,
26 // The following two parameters determine the threshold for a count to be
28 // by 10000). If the counts are sorted in descending order, the minimum count to
29 // reach ProfileSummaryCutoffHot gives the threshold to determine a hot count.
30 // Similarly, the minimum count to reach ProfileSummaryCutoffCold gives the
31 // threshold for determining cold count (everything <= this threshold is
34 "profile-summary-cutoff-hot", cl::Hidden, cl::init(990000),
35 cl::desc("A count is hot if it exceeds the minimum count to"
39 "profile-summary-cutoff-cold", cl::Hidden, cl::init(999999),
40 cl::desc("A count is cold if it is below the minimum count"
44 "profile-summary-huge-working-set-size-threshold", cl::Hidden,
47 " blocks required to reach the -profile-summary-cutoff-hot"
48 " percentile exceeds this count."));
51 "profile-summary-large-working-set-size-threshold", cl::Hidden,
54 " blocks required to reach the -profile-summary-cutoff-hot"
55 " percentile exceeds this count."));
60 "profile-summary-hot-count", cl::ReallyHidden,
61 cl::desc("A fixed hot count that overrides the count derived from"
62 " profile-summary-cutoff-hot"));
65 "profile-summary-cold-count", cl::ReallyHidden,
66 cl::desc("A fixed cold count that overrides the count derived from"
67 " profile-summary-cutoff-cold"));
94 // The first counter is not necessarily an entry count for IR
108 // equivalent to a block with a count in the instrumented profile.
123 uint64_t Count = I.second.getSamples();
124 addCount(Count);
141 uint64_t CurrSum = 0, Count = 0;
153 Count = Iter->first;
154 uint32_t Freq = Iter->second;
155 CurrSum += (Count * Freq);
160 ProfileSummaryEntry PSE = {Cutoff, Count, CountsSeen};
199 // For CSSPGO, context-sensitive profile effectively split a function profile
201 // context. That makes the count distribution looks more flat as we now have
226 void InstrProfSummaryBuilder::addEntryCount(uint64_t Count) {
227 assert(Count <= getInstrMaxCountValue() &&
228 "Count value should be less than the max count value.");
230 addCount(Count);
231 if (Count > MaxFunctionCount)
232 MaxFunctionCount = Count;
235 void InstrProfSummaryBuilder::addInternalCount(uint64_t Count) {
236 assert(Count <= getInstrMaxCountValue() &&
237 "Count value should be less than the max count value.");
238 addCount(Count);
239 if (Count > MaxInternalBlockCount)
240 MaxInternalBlockCount = Count;