Commit d430144
authored
- Introduced metrics for tracking cache operations, including hand advances, reference bit resets, and eviction counts in `ClockRing`.
- Enhanced `ARC`, `CAR`, and `ClockPro` policies with metrics for get calls, hits, misses, and evictions, improving observability of cache behavior.
- Implemented snapshot structures for metrics, allowing for easy retrieval and reporting of performance data.
- Updated documentation to include new metrics features and usage examples, ensuring clarity on how to leverage metrics for performance monitoring.
- Ensured all changes align with performance goals, maintaining efficient memory usage and O(1) complexity for critical operations.
1 parent 1c0fb42 commit d430144
20 files changed
Lines changed: 2837 additions & 239 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
265 | 269 | | |
266 | 270 | | |
267 | 271 | | |
| |||
1102 | 1106 | | |
1103 | 1107 | | |
1104 | 1108 | | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
1105 | 1113 | | |
1106 | 1114 | | |
1107 | 1115 | | |
| |||
1173 | 1181 | | |
1174 | 1182 | | |
1175 | 1183 | | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
1176 | 1189 | | |
1177 | 1190 | | |
1178 | 1191 | | |
| |||
1195 | 1208 | | |
1196 | 1209 | | |
1197 | 1210 | | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
1198 | 1225 | | |
1199 | 1226 | | |
1200 | 1227 | | |
| |||
1491 | 1518 | | |
1492 | 1519 | | |
1493 | 1520 | | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
1494 | 1525 | | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
1495 | 1530 | | |
1496 | 1531 | | |
1497 | 1532 | | |
| |||
1506 | 1541 | | |
1507 | 1542 | | |
1508 | 1543 | | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
1509 | 1548 | | |
1510 | 1549 | | |
1511 | 1550 | | |
| |||
1587 | 1626 | | |
1588 | 1627 | | |
1589 | 1628 | | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
1590 | 1633 | | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
1591 | 1638 | | |
1592 | 1639 | | |
1593 | 1640 | | |
| |||
1596 | 1643 | | |
1597 | 1644 | | |
1598 | 1645 | | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
1599 | 1650 | | |
1600 | 1651 | | |
1601 | 1652 | | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
1602 | 1657 | | |
1603 | 1658 | | |
1604 | 1659 | | |
| |||
0 commit comments