Expand description
Application layer for perfgate.
The app layer coordinates adapters and domain logic. It does not parse CLI flags and it does not do filesystem I/O.
Modules§
- baseline_
resolve - Baseline path resolution logic.
- comparison_
logic - Logic for building budgets and metric statistics for comparisons.
Structs§
- Check
Outcome - Outcome of the check use case.
- Check
Request - Request for the check use case.
- Check
UseCase - Use case for running a config-driven check.
- Compare
Export Row - Row structure for CompareReceipt export.
- Compare
Request - Compare
Result - Result from CompareUseCase including host mismatch information.
- Compare
UseCase - Export
UseCase - Use case for exporting receipts to different formats.
- Paired
RunOutcome - Paired
RunRequest - Paired
RunUse Case - Promote
Request - Request for promoting a run receipt to become a baseline.
- Promote
Result - Result of a promote operation.
- Promote
UseCase - Use case for promoting run receipts to baselines.
- Report
Request - Request for generating a report from a compare receipt.
- Report
Result - Result of a report generation operation.
- Report
UseCase - Use case for generating perfgate reports.
- RunBench
Outcome - RunBench
Request - RunBench
UseCase - RunExport
Row - Row structure for RunReceipt export.
- Sensor
Check Options - Options for
run_sensor_check. - Sensor
Report Builder - Builder for constructing a SensorReport from a PerfgateReport.
- System
Clock
Enums§
- Bench
Outcome - A single bench’s outcome for aggregation into a sensor report.
- Export
Format - Supported export formats.
Traits§
Functions§
- classify_
error - Classify an error into (stage, error_kind) for structured error reporting.
- default_
engine_ capability - Build a default engine capability based on the current platform.
- 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.
- run_
sensor_ check - Run a sensor check and return a
SensorReportdirectly. - sensor_
fingerprint - Build a fleet-standard fingerprint from semantic parts.