Skip to main content

Module display

Module display 

Source
Expand description

One line per node of a NativeTree.

The tree is displayed by recursively visiting its bound expressions. The display is an observation of a compiled tree: it runs nothing, and every line reads as the node it is, making no claim about whether that node could run.

A node that recorded figures shows them at the end of its own line, and only its own: the walk carries the path the runtime registered that node under, so the figures of one node are never reported as those of another. A tree whose nodes recorded nothing - one that was never run, which is what EXPLAIN shows - prints structure only.

Structs§

NativeNodeReport
One displayed node: its line, the figures it recorded, and the nodes that consume its output.
NativeTreeDisplay
A tree as it appears below the operator line: one node per line, two spaces per depth, and each node’s figures on its own line.

Constants§

ROOT_PATH
The path the runtime registers a tree’s root node under.

Functions§

aggregate_kind 🔒
The PromQL name of an aggregate, with the constant argument it was bound to.
aggregate_name 🔒
The PromQL name of an aggregate, without the argument it may have bound.
binary_op 🔒
The PromQL symbol of a binary operator.
child_segments 🔒
The child nodes of node and the path segment each is registered under, in child order.
describe 🔒
The operation a node computes, in the words of the query that produced it.
describe_aggregate 🔒
An aggregate: what it folds, how its groups are identified and which stage it reports.
fill 🔒
function 🔒
The PromQL name of a range function, with the constant argument it was bound to.
grid_name 🔒
A grid as <start>/<step>x<len>.
grid_of 🔒
The grid a node’s output is evaluated on, or - for one that has none.
grouping 🔒
A grouping as by [labels] or without [labels].
kind 🔒
What kind of node this is, as its line names it.
label_list 🔒
A label list in the order it was bound.
label_pairs 🔒
The labels of metric as name="value" pairs, the metric name first.
map_op 🔒
The PromQL call a map operation makes, with the constant arguments it was bound to.
matching_labels 🔒
math_op 🔒
The PromQL name of a math function, with the constant arguments it was bound to.
ordering 🔒
The ordering an input guarantees, when it is weaker than the scan’s default.
report_node 🔒
The node at path and everything below it, with the figures each node recorded.
window 🔒
A window: what it runs, over which range, and where it lands.
write_report 🔒