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

Method stats

atomic-core/src/apply/workspace.rs:679–690  ·  view source on GitHub ↗

Get statistics about the workspace state.

(&self)

Source from the content-addressed store, hash-verified

677
678 /// Get statistics about the workspace state.
679 pub fn stats(&self) -> WorkspaceStats {
680 WorkspaceStats {
681 up_context_count: self.predecessors.len(),
682 down_context_count: self.successors.len(),
683 pending_edge_count: self.pending_edges.len(),
684 deleted_edge_count: self.deleted_edges.len(),
685 parent_count: self.parents.len(),
686 missing_context_count: self.missing_contexts.len(),
687 zombie_count: self.zombies.len(),
688 rooted_count: self.rooted.len(),
689 }
690 }
691}
692
693impl Default for Workspace {

Callers 2

Calls 1

lenMethod · 0.45

Tested by 2