(stats: Stats)
| 1045 | ] |
| 1046 | |
| 1047 | def calc_misses_by_table(stats: Stats) -> Rows: |
| 1048 | opcode_stats = stats.get_opcode_stats("opcode") |
| 1049 | misses_counts = opcode_stats.get_misses_counts() |
| 1050 | total = sum(misses_counts.values()) |
| 1051 | if total == 0: |
| 1052 | return [] |
| 1053 | |
| 1054 | return [ |
| 1055 | (name, Count(value), Ratio(value, total)) |
| 1056 | for name, value in sorted( |
| 1057 | misses_counts.items(), key=itemgetter(1), reverse=True |
| 1058 | )[:10] |
| 1059 | ] |
| 1060 | |
| 1061 | return Section( |
| 1062 | "Specialization effectiveness", |
nothing calls this directly
no test coverage detected
searching dependent graphs…