Lines Matching refs:ratio
302 static const char *get_ratio_color(enum grc_type type, double ratio) in get_ratio_color() argument
311 if (ratio > grc_table[type][0]) in get_ratio_color()
313 else if (ratio > grc_table[type][1]) in get_ratio_color()
315 else if (ratio > grc_table[type][2]) in get_ratio_color()
454 double total, ratio = 0.0; in print_stalled_cycles_frontend() local
461 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
463 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); in print_stalled_cycles_frontend()
465 if (ratio) in print_stalled_cycles_frontend()
467 ratio); in print_stalled_cycles_frontend()
478 double total, ratio = 0.0; in print_stalled_cycles_backend() local
485 ratio = avg / total * 100.0; in print_stalled_cycles_backend()
487 color = get_ratio_color(GRC_STALLED_CYCLES_BE, ratio); in print_stalled_cycles_backend()
489 out->print_metric(config, out->ctx, color, "%7.2f%%", "backend cycles idle", ratio); in print_stalled_cycles_backend()
499 double total, ratio = 0.0; in print_branch_misses() local
506 ratio = avg / total * 100.0; in print_branch_misses()
508 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_branch_misses()
510 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all branches", ratio); in print_branch_misses()
521 double total, ratio = 0.0; in print_l1_dcache_misses() local
528 ratio = avg / total * 100.0; in print_l1_dcache_misses()
530 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_l1_dcache_misses()
532 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all L1-dcache accesses", ratio); in print_l1_dcache_misses()
543 double total, ratio = 0.0; in print_l1_icache_misses() local
550 ratio = avg / total * 100.0; in print_l1_icache_misses()
552 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_l1_icache_misses()
553 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all L1-icache accesses", ratio); in print_l1_icache_misses()
563 double total, ratio = 0.0; in print_dtlb_cache_misses() local
570 ratio = avg / total * 100.0; in print_dtlb_cache_misses()
572 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_dtlb_cache_misses()
573 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all dTLB cache accesses", ratio); in print_dtlb_cache_misses()
583 double total, ratio = 0.0; in print_itlb_cache_misses() local
590 ratio = avg / total * 100.0; in print_itlb_cache_misses()
592 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_itlb_cache_misses()
593 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all iTLB cache accesses", ratio); in print_itlb_cache_misses()
603 double total, ratio = 0.0; in print_ll_cache_misses() local
610 ratio = avg / total * 100.0; in print_ll_cache_misses()
612 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_ll_cache_misses()
613 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all LL-cache accesses", ratio); in print_ll_cache_misses()
858 double ratio, scale; in generic_metric() local
867 if (expr__parse(&ratio, &pctx, metric_expr, runtime) == 0) { in generic_metric()
874 ratio *= scale; in generic_metric()
884 metric_bf, ratio); in generic_metric()
890 ratio); in generic_metric()
909 double ratio = 0.0; in test_generic_metric() local
914 if (expr__parse(&ratio, &pctx, mexp->metric_expr, 1)) in test_generic_metric()
915 ratio = 0.0; in test_generic_metric()
919 return ratio; in test_generic_metric()
931 double total, ratio = 0.0, total2; in perf_stat__print_shadow_stats() local
941 ratio = avg / total; in perf_stat__print_shadow_stats()
943 "insn per cycle", ratio); in perf_stat__print_shadow_stats()
957 ratio = total / avg; in perf_stat__print_shadow_stats()
960 ratio); in perf_stat__print_shadow_stats()
1021 ratio = avg * 100 / total; in perf_stat__print_shadow_stats()
1025 "of all cache refs", ratio); in perf_stat__print_shadow_stats()
1036 ratio = avg / total; in perf_stat__print_shadow_stats()
1037 print_metric(config, ctxp, NULL, "%8.3f", "GHz", ratio); in perf_stat__print_shadow_stats()
1067 ratio = total / avg; in perf_stat__print_shadow_stats()
1071 "cycles / transaction", ratio); in perf_stat__print_shadow_stats()
1080 ratio = total / avg; in perf_stat__print_shadow_stats()
1082 print_metric(config, ctxp, NULL, "%8.0f", "cycles / elision", ratio); in perf_stat__print_shadow_stats()
1084 if ((ratio = avg_stats(&walltime_nsecs_stats)) != 0) in perf_stat__print_shadow_stats()
1086 avg / (ratio * evsel->scale)); in perf_stat__print_shadow_stats()
1175 ratio = 1000.0 * avg / total; in perf_stat__print_shadow_stats()
1176 if (ratio < 0.001) { in perf_stat__print_shadow_stats()
1177 ratio *= 1000; in perf_stat__print_shadow_stats()
1181 print_metric(config, ctxp, NULL, "%8.3f", unit_buf, ratio); in perf_stat__print_shadow_stats()