Lines Matching full:count
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
35 cl::desc("A count is hot if it exceeds the minimum count to"
40 cl::desc("A count is cold if it is below the minimum count"
48 " percentile exceeds this count."));
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"
65 "profile-summary-cold-count", cl::ReallyHidden,
66 cl::desc("A fixed cold count that overrides the count derived from"
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;
155 CurrSum += (Count * Freq);
160 ProfileSummaryEntry PSE = {Cutoff, Count, CountsSeen};
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;