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
@@ -99,6 +99,7 @@ impl App for To<'_> {
}
fn run(&mut self, rfe: &mut Rfe) {
self.data.hk.perf.enter(rfe);
self.data.out_data.counter += 1;
let mut msgs = Vec::new();
while let Some(msg) = rfe.recv() {
@@ -135,6 +136,7 @@ impl App for To<'_> {
rfe.post_message(msg);
}
}
self.data.hk.perf.exit(rfe);
}
fn hk(&mut self, rfe: &mut Rfe) {