Lines Matching full:stats
1 //===-- Statistic.cpp - Easy way to expose stats information --------------===//
11 // printed at the end of a run, when the -stats command line option is enabled
41 /// -stats - Command line option to cause transformations to emit stats about
51 "stats", in initStatisticOptions()
56 "stats-json", cl::desc("Display statistics as json data"), in initStatisticOptions()
67 std::vector<TrackingStatistic *> Stats; member in __anonece966b40111::StatisticInfo
81 void addStatistic(TrackingStatistic *S) { Stats.push_back(S); } in addStatistic()
83 const_iterator begin() const { return Stats.begin(); } in begin()
84 const_iterator end() const { return Stats.end(); } in end()
99 // If stats are enabled, inform StatInfo that this statistic should be in RegisterStatistic()
143 Stats, [](const TrackingStatistic *LHS, const TrackingStatistic *RHS) { in sort()
161 for (auto *Stat : Stats) { in reset()
173 Stats.clear(); in reset()
177 StatisticInfo &Stats = *StatInfo; in PrintStatistics() local
181 for (TrackingStatistic *Stat : Stats.Stats) { in PrintStatistics()
187 Stats.sort(); in PrintStatistics()
195 for (TrackingStatistic *Stat : Stats.Stats) in PrintStatistics()
205 StatisticInfo &Stats = *StatInfo; in PrintStatisticsJSON() local
207 Stats.sort(); in PrintStatisticsJSON()
212 for (const TrackingStatistic *Stat : Stats.Stats) { in PrintStatisticsJSON()
232 StatisticInfo &Stats = *StatInfo; in PrintStatistics() local
235 if (Stats.Stats.empty()) return; in PrintStatistics()
245 // Check if the -stats option is set instead of checking in PrintStatistics()
246 // !Stats.Stats.empty(). In release builds, Statistics operators in PrintStatistics()
247 // do nothing, so stats are never Registered. in PrintStatistics()