Skip to main content

Module query

Module query 

Source
Expand description

Graph queries: trace weight, import chains, cut points, and diffs.

Structs§

CutModule
A module whose dynamic conversion would sever one or more import chains.
DiffPackage
A package that appears in only one side of a diff, with its size.
DiffResult
Compute a diff between two trace snapshots.
HeavyPackage
A third-party package with its reachable size and shortest import chain.
ModuleCost
A module with its exclusive weight (bytes only it contributes to the graph).
TraceOptions
Options controlling which edges to follow and how many results to return.
TraceResult
Results of tracing transitive import weight from an entry module.
TraceSnapshot
Minimal snapshot of a trace result for before/after comparison.

Enums§

ChainTarget
Target for --chain/--cut queries: a package name or a specific module.

Functions§

diff_snapshots
find_all_chains
Find ALL shortest chains from entry to a specific target (package or module).
find_cut_modules
Find modules that appear in all chains from entry to a package.
trace