• Home
  • Raw
  • Download

Lines Matching refs:config

111     for (auto &config : configs_) {  in StatisticsRecords()  local
113 size_t totalReportCount = config.reportItems_.size(); in StatisticsRecords()
116 auto last = std::unique(config.reportItems_.begin(), config.reportItems_.end(), in StatisticsRecords()
119 config.reportItems_.erase(last, config.reportItems_.end()); in StatisticsRecords()
121 duplicates = totalReportCount - config.reportItems_.size(); in StatisticsRecords()
123 config.reportItems_.size()); in StatisticsRecords()
130 for (auto &config : configs_) { in FilterDisplayRecords() local
132 size_t totalReportCount = config.reportItems_.size(); in FilterDisplayRecords()
136 auto itemIt = config.reportItems_.begin(); in FilterDisplayRecords()
137 while (itemIt != config.reportItems_.end()) { in FilterDisplayRecords()
142 config.eventCount_ -= itemIt->eventCount_; in FilterDisplayRecords()
145 itemIt = config.reportItems_.erase(itemIt); in FilterDisplayRecords()
154 config.reportItems_.size()); in FilterDisplayRecords()
160 for (auto &config : configs_) { in UpdateReportItemsAfterAdjust() local
161 HLOGV("percentage %zu items", config.reportItems_.size()); in UpdateReportItemsAfterAdjust()
163 for (auto &item : config.reportItems_) { in UpdateReportItemsAfterAdjust()
164 item.heat = Percentage(item.eventCount_, config.eventCount_); in UpdateReportItemsAfterAdjust()
167 item.ToDebugString().c_str(), item.heat, item.eventCount_, config.eventCount_); in UpdateReportItemsAfterAdjust()
174 totalEventCount, config.eventCount_); in UpdateReportItemsAfterAdjust()
175 HLOG_ASSERT(totalEventCount == config.eventCount_); in UpdateReportItemsAfterAdjust()
182 for (auto &config : configs_) { in AdjustReportItems() local
183 uint64_t totalReportCount = config.reportItems_.size(); in AdjustReportItems()
185 for (auto &reportItem : config.reportItems_) { in AdjustReportItems()
191 std::sort(config.reportItems_.begin(), config.reportItems_.end(), in AdjustReportItems()
196 for (auto &reportItem : config.reportItems_) { in AdjustReportItems()
204 std::sort(config.reportItems_.begin(), config.reportItems_.end(), in AdjustReportItems()
208 for (auto &reportItem : config.reportItems_) { in AdjustReportItems()
211 HLOGD("afater sorting and unique, we have %zu report items,", config.reportItems_.size()); in AdjustReportItems()
322 void Report::OutputStdStatistics(ReportEventConfigItem &config) in OutputStdStatistics() argument
327 if (fprintf(output_, "Event: %s (type %" PRIu32 " id %" PRIu64 ")\n", config.eventName_.c_str(), in OutputStdStatistics()
328 config.type_, config.config_) < 0) { in OutputStdStatistics()
331 if (fprintf(output_, "Samples Count: %" PRIu64 "\n", config.sampleCount_) < 0) { in OutputStdStatistics()
334 if (!config.coutMode_) { in OutputStdStatistics()
339 fprintf(output_, "%" PRIu64 "\n", config.eventCount_); in OutputStdStatistics()
342 bool Report::OutputStdStatistics(ReportEventConfigItem &config, ReportEventConfigItem &otherConfig) in OutputStdStatistics() argument
344 if (config != otherConfig) { in OutputStdStatistics()
348 fprintf(output_, "Event: %s (type %" PRIu32 " id %" PRIu64 ")", config.eventName_.c_str(), in OutputStdStatistics()
349 config.type_, config.config_); in OutputStdStatistics()
350 fprintf(output_, "Samples Count: %" PRIu64 " vs %" PRIu64 "\n", config.sampleCount_, in OutputStdStatistics()
352 if (config.coutMode_) { in OutputStdStatistics()
357 fprintf(output_, "%" PRIu64 " vs %" PRIu64 "\n", config.eventCount_, otherConfig.eventCount_); in OutputStdStatistics()
361 void Report::OutputStdHead(ReportEventConfigItem &config, bool diffMode) in OutputStdHead() argument
491 void Report::OutputStdContent(ReportEventConfigItem &config) in OutputStdContent() argument
494 auto it = config.reportItems_.begin(); in OutputStdContent()
495 while (it != config.reportItems_.end()) { in OutputStdContent()
614 for (auto &config : configs_) { in OutputStd() local
615 OutputStdStatistics(config); in OutputStd()
616 OutputStdHead(config); in OutputStd()
617 OutputStdContent(config); in OutputStd()