Lines Matching full:ratio
329 static const char *get_ratio_color(enum grc_type type, double ratio) in get_ratio_color() argument
338 if (ratio > grc_table[type][0]) in get_ratio_color()
340 else if (ratio > grc_table[type][1]) in get_ratio_color()
342 else if (ratio > grc_table[type][2]) in get_ratio_color()
488 double total, ratio = 0.0; in print_stalled_cycles_frontend() local
494 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
496 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); in print_stalled_cycles_frontend()
498 if (ratio) in print_stalled_cycles_frontend()
500 ratio); in print_stalled_cycles_frontend()
511 double total, ratio = 0.0; in print_stalled_cycles_backend() local
517 ratio = avg / total * 100.0; in print_stalled_cycles_backend()
519 color = get_ratio_color(GRC_STALLED_CYCLES_BE, ratio); in print_stalled_cycles_backend()
521 out->print_metric(config, out->ctx, color, "%7.2f%%", "backend cycles idle", ratio); in print_stalled_cycles_backend()
530 double total, ratio = 0.0; in print_branch_misses() local
536 ratio = avg / total * 100.0; in print_branch_misses()
538 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_branch_misses()
540 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all branches", ratio); in print_branch_misses()
549 double total, ratio = 0.0; in print_l1_dcache_misses() local
555 ratio = avg / total * 100.0; in print_l1_dcache_misses()
557 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_l1_dcache_misses()
559 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all L1-dcache accesses", ratio); in print_l1_dcache_misses()
568 double total, ratio = 0.0; in print_l1_icache_misses() local
574 ratio = avg / total * 100.0; in print_l1_icache_misses()
576 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_l1_icache_misses()
577 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all L1-icache accesses", ratio); in print_l1_icache_misses()
586 double total, ratio = 0.0; in print_dtlb_cache_misses() local
592 ratio = avg / total * 100.0; in print_dtlb_cache_misses()
594 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_dtlb_cache_misses()
595 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all dTLB cache accesses", ratio); in print_dtlb_cache_misses()
604 double total, ratio = 0.0; in print_itlb_cache_misses() local
610 ratio = avg / total * 100.0; in print_itlb_cache_misses()
612 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_itlb_cache_misses()
613 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all iTLB cache accesses", ratio); in print_itlb_cache_misses()
622 double total, ratio = 0.0; in print_ll_cache_misses() local
628 ratio = avg / total * 100.0; in print_ll_cache_misses()
630 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_ll_cache_misses()
631 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all LL-cache accesses", ratio); in print_ll_cache_misses()
899 double ratio, scale; in generic_metric() local
917 if (expr__parse(&ratio, pctx, metric_expr) == 0) { in generic_metric()
924 ratio *= scale; in generic_metric()
934 metric_bf, ratio); in generic_metric()
940 ratio); in generic_metric()
959 double ratio = 0.0; in test_generic_metric() local
968 if (expr__parse(&ratio, pctx, mexp->metric_expr)) in test_generic_metric()
969 ratio = 0.0; in test_generic_metric()
973 return ratio; in test_generic_metric()
985 double total, ratio = 0.0, total2; in perf_stat__print_shadow_stats() local
1000 ratio = avg / total; in perf_stat__print_shadow_stats()
1002 "insn per cycle", ratio); in perf_stat__print_shadow_stats()
1015 ratio = total / avg; in perf_stat__print_shadow_stats()
1018 ratio); in perf_stat__print_shadow_stats()
1079 ratio = avg * 100 / total; in perf_stat__print_shadow_stats()
1083 "of all cache refs", ratio); in perf_stat__print_shadow_stats()
1094 ratio = avg / total; in perf_stat__print_shadow_stats()
1095 print_metric(config, ctxp, NULL, "%8.3f", "GHz", ratio); in perf_stat__print_shadow_stats()
1124 ratio = total / avg; in perf_stat__print_shadow_stats()
1128 "cycles / transaction", ratio); in perf_stat__print_shadow_stats()
1136 ratio = total / avg; in perf_stat__print_shadow_stats()
1138 print_metric(config, ctxp, NULL, "%8.0f", "cycles / elision", ratio); in perf_stat__print_shadow_stats()
1140 if ((ratio = avg_stats(&walltime_nsecs_stats)) != 0) in perf_stat__print_shadow_stats()
1142 avg / (ratio * evsel->scale)); in perf_stat__print_shadow_stats()
1311 ratio = convert_unit_double(1000000000.0 * avg / total, &unit); in perf_stat__print_shadow_stats()
1315 print_metric(config, ctxp, NULL, "%8.3f", unit_buf, ratio); in perf_stat__print_shadow_stats()