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
@@ -32,6 +32,7 @@ impl App for Example {
}
fn run(&mut self, rfe: &mut rfe::Rfe) {
self.data.hk.perf.enter(rfe);
self.data.out_data.counter += 1;
info!("example running {:?}", self.data);
while let Some(msg) = rfe.recv() {
@@ -52,6 +53,7 @@ impl App for Example {
if self.data.out_data.counter > 10 {
rfe.send(Msg::ExampleCmd(ExampleCmd::Reset));
};
self.data.hk.perf.exit(rfe);
}
fn hk(&mut self, rfe: &mut rfe::Rfe) {