:sig
DValue unit_info(String path = "")

:params
path : optional UCE unit path. If empty, uses the current executing unit.
return value : metadata tree for the resolved unit, or an empty tree if the unit cannot be resolved

:see
>runtime
units_list
unit_compile
0_Request
unit_load

:content
Returns runtime metadata for a UCE compilation unit.

The returned tree includes:

- normalized paths and generated artifact paths
- unit metadata sidecar paths plus runtime and compiled unit ABI version information
- compile status, compile error status, runtime error status, and a combined `error_status`
- request and invocation counters
- best, worst, last, and average render time
- compile counters plus best, worst, last, and average compile time
- file mtimes, stale status, ABI compatibility status, load status, and exported API declarations

If `path` is relative, it is resolved relative to the current executing unit.

Because unit metadata lives in process memory alongside `SharedUnit`, request and timing counters reflect the current runtime process, not an aggregate across every worker process.

Related:

- PHP: reflection-style metadata about included modules, callables, or exported capabilities
- JavaScript / Node.js: module metadata, reflection-like inspection, or manifest-based capability lookup
