Expand benchmarking guide with worked log-field examples and offline summary helper #15

Open
opened 2026-12-06 00:20:11 +00:00 by github-bot · 0 comments
Owner

@⁠VictoryX-dev on GitHub · 2026-12-03 02:57 UTC · original

Problem

VictoryX emits rich release-build telemetry (application present cadence, frames over 1.8 times their window's median, memory breakdown, memory split, xfer per frame and A/B phase). New contributors often need concrete synthetic examples of these log lines and a small offline parser/summary script to compare two runs cleanly without hand-copying numbers.

Known Evidence

  • Observed directly in source:
    • Log formats are defined in frame_metrics.rs, membreak.rs, memcensus.rs, ab.rs and copystat.rs / host.rs.
    • docs/BENCHMARKING.md explains the measurement methodology and key fields, but does not yet include annotated synthetic log snippets or a reusable offline summary tool for VICTORY_FRAME_SAMPLES CSVs and log files.
  • Synthetic / Local verification: Examples and parser unit tests can be built entirely from synthetic data matching the exact tracing::info! format strings in source.

Approaches That Did Not Work

  • Pasting raw gameplay session logs or monitor CSVs into the repository: Violates the asset and privacy policy (can contain machine paths or title-specific log lines). All examples and test inputs MUST be 100% synthetic.

Relevant Source Modules

  • docs/BENCHMARKING.md
  • runtime/crates/victory-gpu/src/frame_metrics.rs
  • runtime/crates/victory-gpu/src/membreak.rs
  • runtime/crates/victory-gpu/src/memcensus.rs
  • runtime/crates/victory-gpu/src/ab.rs

Expected Contribution

  • Add annotated, 100% synthetic example lines to docs/BENCHMARKING.md for:
    • application present cadence (VICTORY_FRAME_METRICS) + tail-frame attribution,
    • memory breakdown + memory split,
    • A/B phase ... output from VICTORY_AB.
  • Optionally add a small, tested offline summary script or CLI subcommand that reads a VICTORY_FRAME_SAMPLES CSV and prints Markdown tables of median, P95, P99, P99.9 and 1% low FPS for PR descriptions.

Acceptance Criteria

  • Every documented field name matches the exact tracing::info! format string in source.
  • All sample log lines and CSV fixtures are completely synthetic (zero real session logs, machine paths or title references).
  • cargo xtask policy passes cleanly.
**@⁠VictoryX-dev** on GitHub · 2026-12-03 02:57 UTC · [original](https://github.com/VictoryX-dev/VictoryX/issues/15) ## Problem VictoryX emits rich release-build telemetry (`application present cadence`, `frames over 1.8 times their window's median`, `memory breakdown`, `memory split`, `xfer per frame` and `A/B phase`). New contributors often need concrete synthetic examples of these log lines and a small offline parser/summary script to compare two runs cleanly without hand-copying numbers. ## Known Evidence - **Observed directly in source:** - Log formats are defined in `frame_metrics.rs`, `membreak.rs`, `memcensus.rs`, `ab.rs` and `copystat.rs` / `host.rs`. - `docs/BENCHMARKING.md` explains the measurement methodology and key fields, but does not yet include annotated synthetic log snippets or a reusable offline summary tool for `VICTORY_FRAME_SAMPLES` CSVs and log files. - **Synthetic / Local verification:** Examples and parser unit tests can be built entirely from synthetic data matching the exact `tracing::info!` format strings in source. ## Approaches That Did Not Work - **Pasting raw gameplay session logs or monitor CSVs into the repository:** Violates the asset and privacy policy (can contain machine paths or title-specific log lines). All examples and test inputs MUST be 100% synthetic. ## Relevant Source Modules - `docs/BENCHMARKING.md` - `runtime/crates/victory-gpu/src/frame_metrics.rs` - `runtime/crates/victory-gpu/src/membreak.rs` - `runtime/crates/victory-gpu/src/memcensus.rs` - `runtime/crates/victory-gpu/src/ab.rs` ## Expected Contribution - Add annotated, 100% synthetic example lines to `docs/BENCHMARKING.md` for: - `application present cadence (VICTORY_FRAME_METRICS)` + tail-frame attribution, - `memory breakdown` + `memory split`, - `A/B phase ...` output from `VICTORY_AB`. - Optionally add a small, tested offline summary script or CLI subcommand that reads a `VICTORY_FRAME_SAMPLES` CSV and prints Markdown tables of median, P95, P99, P99.9 and 1% low FPS for PR descriptions. ## Acceptance Criteria - [ ] Every documented field name matches the exact `tracing::info!` format string in source. - [ ] All sample log lines and CSV fixtures are completely synthetic (zero real session logs, machine paths or title references). - [ ] `cargo xtask policy` passes cleanly.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 00:20:11 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/VictoryX-dev--VictoryX#15
No description provided.