MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / avg_children

Method avg_children

atomic-core/src/output/alive/graph.rs:482–488  ·  view source on GitHub ↗

Average children per span.

(&self)

Source from the content-addressed store, hash-verified

480
481 /// Average children per span.
482 pub fn avg_children(&self) -> f64 {
483 if self.vertex_count == 0 {
484 0.0
485 } else {
486 self.child_count as f64 / self.vertex_count as f64
487 }
488 }
489}
490
491impl std::fmt::Display for GraphStats {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected