Lines Matching refs:stats

266                                  /*inout*/ FieldAccessStats* stats) {  in ProcessDexFile()  argument
270 ++stats->field_index_[it->second]; in ProcessDexFile()
272 ++stats->field_index_other_; in ProcessDexFile()
275 ++stats->field_index_other_class_; in ProcessDexFile()
280 ++stats->short_bytecode_; in ProcessDexFile()
286 /*inout*/ InstanceFieldAccessStats* stats) { in ProcessDexFile() argument
290 ++stats->inout_[input]; in ProcessDexFile()
293 ++stats->receiver_[(receiver - first_arg_reg) & 0xF]; in ProcessDexFile()
295 ProcessFieldIndex(dex_field_idx, input, index_map, stats); in ProcessDexFile()
300 /*inout*/ StaticFieldAccessStats* stats) { in ProcessDexFile() argument
305 ++stats->inout_[output]; in ProcessDexFile()
307 ++stats->inout_other_; in ProcessDexFile()
309 ProcessFieldIndex(dex_field_idx, output, index_map, stats); in ProcessDexFile()
480 auto DumpFieldIndexes = [&](const FieldAccessStats& stats) { in Dump() argument
482 stats.field_index_, in Dump()
483 stats.field_index_ + FieldAccessStats::kMaxFieldIndex, in Dump()
484 stats.field_index_other_ + stats.field_index_other_class_); in Dump()
486 os << " field_idx=" << i << ": " << Percent(stats.field_index_[i], fields_idx_total) << "\n"; in Dump()
488 os << " field_idx=other: " << Percent(stats.field_index_other_, fields_idx_total) << "\n"; in Dump()
489 os << " field_idx=other_class: " << Percent(stats.field_index_other_class_, fields_idx_total) in Dump()
492 auto DumpInstanceFieldStats = [&](const char* tag, const InstanceFieldAccessStats& stats) { in Dump() argument
493 const uint64_t fields_total = std::accumulate(stats.inout_, stats.inout_ + 16u, 0u); in Dump()
496 os << " receiver_reg=" << i << ": " << Percent(stats.receiver_[i], fields_total) << "\n"; in Dump()
501 os << " " << inout_tag << "=" << i << ": " << Percent(stats.inout_[i], fields_total) << "\n"; in Dump()
503 DumpFieldIndexes(stats); in Dump()
504 os << " short_bytecode: " << Percent(stats.short_bytecode_, fields_total) << "\n"; in Dump()
505 os << " short_bytecode_savings=" << Percent(stats.short_bytecode_ * 2, total_size) << "\n"; in Dump()
510 auto DumpStaticFieldStats = [&](const char* tag, const StaticFieldAccessStats& stats) { in Dump() argument
512 std::accumulate(stats.inout_, stats.inout_ + 16u, stats.inout_other_); in Dump()
517 os << " " << inout_tag << "=" << i << ": " << Percent(stats.inout_[i], fields_total) << "\n"; in Dump()
519 os << " " << inout_tag << "=other: " << Percent(stats.inout_other_, fields_total) << "\n"; in Dump()
520 DumpFieldIndexes(stats); in Dump()
521 os << " short_bytecode: " << Percent(stats.short_bytecode_, fields_total) << "\n"; in Dump()
522 os << " short_bytecode_savings=" << Percent(stats.short_bytecode_ * 2, total_size) << "\n"; in Dump()