added perf
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -72,6 +72,7 @@ impl App for Hs<'_> {
|
||||
}
|
||||
|
||||
fn run(&mut self, rfe: &mut Rfe) {
|
||||
self.data.hk.perf.enter(rfe);
|
||||
self.data.out_data.counter += 1;
|
||||
while let Some(msg) = rfe.recv() {
|
||||
match msg.msg {
|
||||
@@ -121,6 +122,8 @@ impl App for Hs<'_> {
|
||||
if self.config.temp_checks {
|
||||
self.data.hk.temps = self.grabber.check_temps();
|
||||
}
|
||||
|
||||
self.data.hk.perf.exit(rfe);
|
||||
}
|
||||
|
||||
fn hk(&mut self, rfe: &mut Rfe) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user