Home | History | Annotate | Download | only in Support

Lines Matching refs:Stats

1 //===-- Statistic.cpp - Easy way to expose stats information --------------===//
12 // printed at the end of a run, when the -stats command line option is enabled
37 /// -stats - Command line option to cause transformations to emit stats about
42 "stats",
46 static cl::opt<bool> StatsAsJSON("stats-json",
54 std::vector<const Statistic*> Stats;
65 Stats.push_back(S);
76 // If stats are enabled, inform StatInfo that this statistic should be
106 std::stable_sort(Stats.begin(), Stats.end(),
119 StatisticInfo &Stats = *StatInfo;
123 for (size_t i = 0, e = Stats.Stats.size(); i != e; ++i) {
125 (unsigned)utostr(Stats.Stats[i]->getValue()).size());
127 (unsigned)std::strlen(Stats.Stats[i]->getDebugType()));
130 Stats.sort();
138 for (size_t i = 0, e = Stats.Stats.size(); i != e; ++i)
140 MaxValLen, Stats.Stats[i]->getValue(),
141 MaxDebugTypeLen, Stats.Stats[i]->getDebugType(),
142 Stats.Stats[i]->getDesc());
160 StatisticInfo &Stats = *StatInfo;
162 Stats.sort();
167 for (const Statistic *Stat : Stats.Stats) {
182 StatisticInfo &Stats = *StatInfo;
185 if (Stats.Stats.empty()) return;
195 // Check if the -stats option is set instead of checking
196 // !Stats.Stats.empty(). In release builds, Statistics operators
197 // do nothing, so stats are never Registered.