Lines Matching refs:config
120 for (auto &config : configs_) {
122 size_t totalReportCount = config.reportItems_.size();
125 auto last = std::unique(config.reportItems_.begin(), config.reportItems_.end(),
130 config.reportItems_.erase(last, config.reportItems_.end());
132 duplicates = totalReportCount - config.reportItems_.size();
134 config.reportItems_.size());
141 for (auto &config : configs_) {
143 size_t totalReportCount = config.reportItems_.size();
147 auto itemIt = config.reportItems_.begin();
148 while (itemIt != config.reportItems_.end()) {
153 config.eventCount_ -= itemIt->eventCount_;
156 itemIt = config.reportItems_.erase(itemIt);
165 config.reportItems_.size());
171 for (auto &config : configs_) {
172 HLOGV("percentage %zu items", config.reportItems_.size());
174 for (auto &item : config.reportItems_) {
175 item.heat = Percentage(item.eventCount_, config.eventCount_);
178 item.ToDebugString().c_str(), item.heat, item.eventCount_, config.eventCount_);
185 totalEventCount, config.eventCount_);
186 HLOG_ASSERT(totalEventCount == config.eventCount_);
193 for (auto &config : configs_) {
194 uint64_t totalReportCount = config.reportItems_.size();
196 for (auto &reportItem : config.reportItems_) {
202 std::sort(config.reportItems_.begin(), config.reportItems_.end(),
209 for (auto &reportItem : config.reportItems_) {
217 std::sort(config.reportItems_.begin(), config.reportItems_.end(),
221 for (auto &reportItem : config.reportItems_) {
224 HLOGD("afater sorting and unique, we have %zu report items,", config.reportItems_.size());
335 void Report::OutputStdStatistics(ReportEventConfigItem &config)
340 if (fprintf(output_, "Event: %s (type %" PRIu32 " id %" PRIu64 ")\n", config.eventName_.c_str(),
341 config.type_, config.config_) < 0) {
344 if (fprintf(output_, "Samples Count: %" PRIu64 "\n", config.sampleCount_) < 0) {
347 if (!config.coutMode_) {
352 fprintf(output_, "%" PRIu64 "\n", config.eventCount_);
355 void Report::OutputStdHead(ReportEventConfigItem &config, bool diffMode)
480 void Report::OutputStdContent(ReportEventConfigItem &config)
483 auto it = config.reportItems_.begin();
484 while (it != config.reportItems_.end()) {
551 // first we need found the match config
603 for (auto &config : configs_) {
604 OutputStdStatistics(config);
605 OutputStdHead(config);
606 OutputStdContent(config);