Child Lib Units is one of the interactive graphs Understand can draw of your code — call trees, dependencies, control flow, and more.
Child Lib Units
Languages: AdaTargets: Packages
Variants: Classic, Cluster, Compare, Relationship, Simplified
Show the Ada library units declared directly or indirectly as children of a selected package.
For a selected package, this shows an edge to each library unit — a package, function, or procedure — declared under it using dotted (child unit) notation, then recurses into each child package's own children, building a multi-level tree. Only a package can have children, so a child function or procedure is always a leaf.
Rooted at Telemetry.Sensors.Analog below, the graph shows its four direct children: the packages Telemetry.Sensors.Analog.Temperature and Telemetry.Sensors.Analog.Pressure, and the subprograms Telemetry.Sensors.Analog.Sample and Telemetry.Sensors.Analog.Configure. The inverse graph, Parent Lib Unit, shows the reverse relationship — the package a selected library unit is declared under.
See the following code and corresponding graph
package Telemetry.Sensors.Analog is
Max_Channels : constant := 8;
end Telemetry.Sensors.Analog;
function Telemetry.Sensors.Analog.Sample
(Channel : Natural) return Float;
procedure Telemetry.Sensors.Analog.Configure
(Channel : Natural; Rate : Natural);
package Telemetry.Sensors.Analog.Temperature is
Offset : constant Float := 0.5;
end Telemetry.Sensors.Analog.Temperature;
package Telemetry.Sensors.Analog.Pressure is
Scale : constant Float := 100.0;
end Telemetry.Sensors.Analog.Pressure;
Child Lib Units - Classic
The Classic variant is similar to the Simplified variant, showing all relationships in a simple tree, but it uses a custom layout algorithm instead of Graphviz.
Child Lib Units - Cluster
The Cluster variant groups entities by their containing class/file/architecture.
Child Lib Units - Compare
The Compare variant shows how the graph has changed relative to the project's comparison database.
Child Lib Units - Relationship
The Relationship variant filters the graph to only paths connecting the two entities.
Child Lib Units - Simplified
The Simplified variant shows all relationships in a simple tree (no clusters)