MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / reset_stats

Method reset_stats

crates/virtual-machine/src/memory/cache.rs:90–92  ·  view source on GitHub ↗

Zero all stats for this cache level only.

(&mut self)

Source from the content-addressed store, hash-verified

88
89 /// Flush all dirty lines to the next level, then invalidate everything.
90 pub fn flush_and_invalidate(&mut self) {
91 for set_idx in 0..self.sets.len() {
92 for way_idx in 0..self.sets[set_idx].ways.len() {
93 let (need_flush, tag) = {
94 let line = &self.sets[set_idx].ways[way_idx];
95 (line.valid && line.dirty, line.tag)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected