MCPcopy Index your code
hub / github.com/python/cpython / TreeNode

Class TreeNode

Lib/profiling/sampling/heatmap_collector.py:44–49  ·  view source on GitHub ↗

Node in the hierarchical file tree structure.

Source from the content-addressed store, hash-verified

42
43@dataclass
44class TreeNode:
45 """Node in the hierarchical file tree structure."""
46 files: List[FileStats] = field(default_factory=list)
47 samples: int = 0
48 count: int = 0
49 children: Dict[str, 'TreeNode'] = field(default_factory=dict)
50
51
52# ============================================================================

Callers 1

build_file_treeMethod · 0.70

Calls 1

fieldFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…