Lines Matching refs:collector
88 static void snapshot(const Options& opt, const PowerStatsCollector& collector) { in snapshot() argument
90 int ret = collector.get(&stats); in snapshot()
96 collector.dump(stats, &std::cout); in snapshot()
106 static void daemon(const Options& opt, const PowerStatsCollector& collector) { in daemon() argument
165 int ret = collector.get(&start_stats); in daemon()
178 ret = collector.get(start_stats, &interval_stats); in daemon()
195 collector.dump(interval_stats, &myfile); in daemon()
207 static void runWithOptions(const Options& opt, const PowerStatsCollector& collector) { in runWithOptions() argument
209 daemon(opt, collector); in runWithOptions()
211 snapshot(opt, collector); in runWithOptions()
215 int run(int argc, char** argv, const PowerStatsCollector& collector) { in run() argument
218 runWithOptions(opt, collector); in run()