Skip to main content

Module runtime

Module runtime 

Source
Expand description

Observed call edges and evidence shared by tracing and tooling. 追踪与工具共用的已观测调用边与证据。

Re-exports§

pub use super::trace::CallTrace;
pub use super::trace::DataEdge;
pub use super::trace::DataHop;
pub use super::trace::FramePath;
pub use super::trace::LocalId;
pub use super::trace::LocalKind;
pub use super::trace::LocalValue;
pub use super::trace::Observation;

Modules§

trace
Runtime call frames, observed data edges, and locals. 运行时调用帧、已观测数据边与局部值。

Structs§

CallEdge
One call edge that was observed while a CallTrace frame was active. CallTrace 中实际观察到的一条调用边。
CallSite
One call edge that was observed while a CallTrace frame was active. CallTrace 中实际观察到的一条调用边。
Coordinates
UI coordinates with actual and expected coordinate spaces. 同时携带实际坐标系和预期坐标系的 UI 坐标。
GraftOverlay
The effective tree record files produced, with their evidence. 记录文件产生的有效树及其证据。
LogicalCallEdge
A call edge with invocation IDs removed for topology queries. 去掉调用实例编号、用于拓扑查询的逻辑调用边。
Provenance
Ordered evidence explaining how a runtime value was produced. 说明某个运行期取值如何产生的有序证据。
ProvenanceStep
One observation in a provenance chain: which node, object, and operation produced a value. 来源链中的一条观测:记录哪个节点、对象与操作产出了某个取值。
RecordedGraft
One persisted graft record, keyed by the directory that held it. 一条持久化嫁接记录,以持有它的目录为键。
RuntimeCheckFailure
Evidence returned when a runtime check rejects a value. 运行期检查拒绝某个取值时返回的证据。

Enums§

EvidenceKind
Provenance of a relationship across runtime, MIR, and source evidence. 运行时、MIR 与源码证据共用的关系来源。
LoadedGraft
One directory under .nichlink/external-grafts/, read or broken. .nichlink/external-grafts/ 下的一个目录,读得懂或坏了。
RecordReport
What reconciliation noticed while turning records into overlay cuts. 把记录变成 overlay 切口时对账注意到的情况。
ResolvedRecord
The outcome of reconciling one record against the base tree alone. 仅凭原树对一条记录做对账的结果。
RuntimeCheckSpec
A named, parameterized check the host runs on produced values. 宿主对产出取值执行的具名参数化校验。
RuntimeValue
A value observed at runtime, tagged with the evidence that produced it. 运行期观测到的取值,并携带产出它的证据。
TraceMode
Runtime collection policy. 运行时追踪收集策略。

Constants§

COORDINATES_IN_VIEWPORT
The viewport-fitting check, for authoring code to name directly. 视口适配检查,供创作代码直接引用的常量。
FINITE_NUMBER
The finite-number check, for authoring code to name directly. 有限数检查,供创作代码直接引用的常量。
NON_EMPTY_TEXT
The non-empty-text check, for authoring code to name directly. 非空文本检查,供创作代码直接引用的常量。

Functions§

apply_recorded_grafts
Load .nichlink/external-grafts/ under package_root and overlay it. 读取 package_root 下的 .nichlink/external-grafts/ 并覆盖。
graft_record_root
The directory that owns every external graft plan under package_root. package_root 下拥有全部外部 graft 计划的目录。
load_graft_record
Read one plan back by its directory selector. 按目录选择器读回一条计划。
load_graft_records
Every plan directory under package_root, readable or not, sorted by selector. package_root 下的每个计划目录,无论是否可读,按选择器排序。