Expand description
Rendering utilities for perfgate output.
This crate provides functions for rendering performance comparison results as markdown tables and GitHub Actions annotations.
Part of the perfgate workspace.
Functionsยง
- direction_
str - Return a human-readable label for a budget
Direction. - format_
metric - Return the canonical string key for a
Metric. - format_
metric_ with_ statistic - Format a metric key, appending the statistic name when it is not the default (median).
- format_
pct - Format a fractional change as a percentage string.
- format_
value - Format a metric value for display.
- github_
annotations - Produce GitHub Actions annotation strings from a
CompareReceipt. - markdown_
template_ context - Build the JSON context object used by
render_markdown_template. - metric_
status_ icon - Return an emoji icon for a
MetricStatus. - metric_
status_ str - Return a lowercase string label for a
MetricStatus. - parse_
reason_ token - Parse a verdict reason token like
"wall_ms_warn"into its metric and status. - render_
markdown - Render a
CompareReceiptas a Markdown table for PR comments. - render_
markdown_ template - Render a
CompareReceiptusing a custom Handlebars template. - render_
reason_ line - Render a single verdict reason token as a human-readable bullet line.