Skip to main content

Module profile

Module profile 

Source
Expand description

PROFILE statement: per-operator execution metrics.

After a profiled query executes, the results are collected into a ProfileNode tree that mirrors the physical operator tree, annotated with actual row counts, timing, and call counts.

Structs§

ProfileEntry
An entry collected during physical planning, used to build the profile tree.
ProfileNode
A node in the profile output tree, corresponding to one physical operator.

Functions§

build_profile_tree
Builds a ProfileNode tree from the logical plan and a list of ProfileEntry items collected during physical planning.
profile_result
Formats a ProfileNode tree into a human-readable text representation and wraps it in a QueryResult with a single “profile” column.