Skip to main content

Module metrics

Module metrics 

Source
Expand description

Format-neutral duplicate grouping over ArtifactIr.

Exact and normalized equality are equivalence relations, so their groups are keyed directly by content rather than by a transitive similarity graph. Near-match grouping is deliberately a later operation: it must use the source engine’s complete-linkage policy instead of union-find.

Structs§

DeadCodeReport
Reachability result derived only from resolved local call edges.
DuplicateGroup
One equality class of duplicate artifact symbols.
DuplicateMember
One occurrence in a DuplicateGroup.
DuplicateReport
Duplicate groups found in one artifact.
EstimatedRefactorSavingsBytes
A model-derived estimate of a refactoring’s byte impact.
RetainedSize
The bytes exclusively retained by one reachable symbol’s dominator region.
SizeClassification
Size categories kept separate in artifact reports.
VerifiedSavingsBytes
A before/after reduction verified for one controlled refactoring.

Enums§

EvidenceConfidence
Evidence strength reported without turning an observation into a promise.

Constants§

DEFAULT_MIN_DUPLICATE_DATA_BYTES
The smallest data region that duplicate-data analysis reports by default.

Functions§

classify_sizes
Derive the size categories supported by the currently observed IR.
classify_sizes_from_duplicates
Derive size categories while reusing duplicate groups already calculated for another report surface.
dead_code_candidates
Find symbols not reachable from parser-established exports.
find_duplicate_data
Find exact duplicate data regions at or above min_bytes.
find_duplicates
Find exact and normalized duplicate groups in artifact.
retained_sizes
Calculate retained code sizes from a complete, unambiguous local call graph.