added perf

This commit is contained in:
2024-12-16 21:34:55 -06:00
parent 5ea5698087
commit d10e83cd7e
16 changed files with 351 additions and 242 deletions
+2
View File
@@ -65,6 +65,7 @@ impl<F: DsFile> App for Ds<F> {
}
fn run(&mut self, rfe: &mut rfe::Rfe) {
self.data.hk.perf.enter(rfe);
self.data.out_data.counter += 1;
self.data.out_data.bytes_written_this_cycle = 0;
while let Some(msg) = rfe.recv() {
@@ -169,6 +170,7 @@ impl<F: DsFile> App for Ds<F> {
}
self.data.out_data.bytes_written += self.data.out_data.bytes_written_this_cycle;
self.data.hk.perf.exit(rfe);
}
fn hk(&mut self, rfe: &mut rfe::Rfe) {