Repository navigation
feat(hyprburst): add opt-in hotpath profiling and latency probe - #79
Merged
Merged
Conversation
NUKE-109 needs repeatable numbers for cold/warm first presentation and query/selection latency across power profiles, without costing the default build anything. - `hotpath` / `hotpath-alloc` features instrument the open, query, and render paths; per-process guards cover the Rio parent, the PTY child (report redirected off the PTY), native, and the TUI. - `HYPRBURST_PERF=1` prints first-present, first-content-present, and query/selection input-to-present samples; scripts/perf-summary.sh summarises them. - examples/query-cost.rs measures query and selection cost offscreen. - With the probe on, --measure reports after content is presented, so its `cargo tree` footprint probe no longer delays the Rio child. - CI runs clippy and tests with both features. - docs/hotpath-profiling.md documents the procedure; docs/hotpath-findings.md records the baseline and ranked findings.
This was referenced Oct 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hyprburst part of NUKE-109: adopt hotpath as the standard profiling harness and record a baseline.
Changes
hotpath/hotpath-alloccargo features (no-op and dependency-free by default) instrument the open, query, selection, and render paths. The Rio parent, Rio PTY child, native, and TUI each have their own profiling scope. The child's report goes to<path>-tui-<pid>, off the PTY.HYPRBURST_PERF=1probe printshyprburst-perf <metric> <frontend> <ms>lines forfirst-present,first-content-present,query-input-to-present, andselection-input-to-present.scripts/perf-summary.shturns them into n / median / p95 / max.examples/query-cost.rs: offscreen query and selection cost.docs/hotpath-profiling.md. Baseline and ranked findings:docs/hotpath-findings.md.Baseline (balanced vs performance, n ≥ 30)
resolve_fontstakes about 42 ms (fontconfig spawns and anfc-listscan) andGlState::newabout 29 ms. Rio also shows an empty panel for about 30 ms before its content appears.Fixes are follow-ups. Drafted issues are listed in the findings doc.
Validation
cargo fmt --check; clippy-D warningswith default and all features;cargo test --all-targetswith default,hotpath, andhotpath-allocfeatures (314 / 315 / 315 passed).