| 60 | |
| 61 | #[derive(Debug, Default)] |
| 62 | pub struct TraceStat { |
| 63 | /// The current cache weight between recent and frequent. |
| 64 | pub p_weight: u64, |
| 65 | |
| 66 | /// The maximum number of items in the shared cache. |
| 67 | pub shared_max: u64, |
| 68 | /// The number of items in the frequent set at this point in time. |
| 69 | pub freq: u64, |
| 70 | /// The number of items in the recent set at this point in time. |
| 71 | pub recent: u64, |
| 72 | |
| 73 | /// The number of total keys seen through the cache's lifetime. |
| 74 | pub all_seen_keys: u64, |
| 75 | } |
| 76 | |
| 77 | impl<K> ARCacheWriteStat<K> for TraceStat |
| 78 | where |
nothing calls this directly
no outgoing calls
no test coverage detected