MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / node_completed

Method node_completed

crates/firewheel-graph/src/processor/profiling.rs:218–231  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

216
217 #[cfg(feature = "node_profiling")]
218 pub fn node_completed(&mut self) {
219 if self.is_profiling_nodes
220 && let Some(new_profile_instant) = crate::time::now()
221 {
222 let node_cpu_usage = new_profile_instant
223 .duration_since(self.node_profile_start_instant)
224 .as_secs_f64()
225 * self.total_cpu_seconds_recip;
226 self.heap_data.node_cpu_sums[self.node_schedule_index] += node_cpu_usage;
227
228 self.node_profile_start_instant = new_profile_instant;
229 self.node_schedule_index += 1;
230 }
231 }
232
233 pub fn process_loop_completed(&mut self) {
234 let Some(now) = crate::time::now() else {

Callers 1

process_blockMethod · 0.80

Calls 2

nowFunction · 0.85
duration_sinceMethod · 0.80

Tested by

no test coverage detected