| 1508 | p->total_weight += weight; |
| 1509 | for (uint32_t ci = 0; ci < p->n_caps; ci++) { |
| 1510 | ds4_expert_profile_cache_use(ci, il, expert, weight); |
| 1511 | } |
| 1512 | } |
| 1513 | } |
| 1514 | |
| 1515 | static void ds4_expert_profile_write_cache_summary(FILE *fp) { |
| 1516 | ds4_expert_profile *p = &g_expert_profile; |
| 1517 | fputs(" \"cache_summary\": [\n", fp); |
| 1518 | for (uint32_t ci = 0; ci < p->n_caps; ci++) { |
| 1519 | uint64_t hits = 0; |
| 1520 | double weight_hits = 0.0; |
| 1521 | for (uint32_t il = 0; il < p->n_layer; il++) { |
no test coverage detected