Reset program cache stats after submit (#31929)
This commit is contained in:
parent
e3ac4258ee
commit
29d7a57cce
|
@ -170,6 +170,10 @@ impl Stats {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn reset(&mut self) {
|
||||
*self = Stats::default();
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
|
|
|
@ -1681,6 +1681,7 @@ impl Bank {
|
|||
.stats
|
||||
.submit(parent.slot());
|
||||
|
||||
new.loaded_programs_cache.write().unwrap().stats.reset();
|
||||
new
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue