Add a privacy-friendly frame log summary #426

Manually merged
github merged 2 commits from github-bot/gh-426 into main 2026-11-29 08:22:15 +00:00 AGit
Owner

@⁠Pierrespeick on GitHub · 2026-11-27 22:18 UTC · original
Pierrespeick:diagnostics/frame-log-summary → main · +119 −0 · 1 files · 2 commits · merged 2026-11-29 08:16 UTC

What changed

Adds a standard-library Python script that summarizes VIctory diagnostic logs. It reports frame time, preparation time, pipelines still building, and whether the texture queue was blocked in slow windows. It can restrict the comparison to a window in the run and emits aggregate numbers without including raw log lines or local paths.

python scripts/summarize-frame-log.py <log> --slow-ms 200 --start 60 --end 90

Validation

Checked synthetic samples for timestamp matching, slow-frame classification, time ranges, and missing records. Ran the CLI against two local diagnostics logs from the #76 comparison and checked the results against the source counters. No log, game asset, screenshot, or build output is included. Runtime behavior is unchanged.

Prepared with Codex assistance.

**@⁠Pierrespeick** on GitHub · 2026-11-27 22:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/426) `Pierrespeick:diagnostics/frame-log-summary` → `main` · +119 −0 · 1 files · 2 commits · merged 2026-11-29 08:16 UTC ## What changed Adds a standard-library Python script that summarizes VIctory diagnostic logs. It reports frame time, preparation time, pipelines still building, and whether the texture queue was blocked in slow windows. It can restrict the comparison to a window in the run and emits aggregate numbers without including raw log lines or local paths. ```powershell python scripts/summarize-frame-log.py <log> --slow-ms 200 --start 60 --end 90 ``` ## Validation Checked synthetic samples for timestamp matching, slow-frame classification, time ranges, and missing records. Ran the CLI against two local diagnostics logs from the #76 comparison and checked the results against the source counters. No log, game asset, screenshot, or build output is included. Runtime behavior is unchanged. Prepared with Codex assistance.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 22:20:04 +00:00
Author
Owner

@⁠1tsethan on GitHub · 2026-11-27 23:01 UTC · original

Tested PR commit: 1d2880ac24db7fe7ddbc3b018afa4a70352c55d1.

The Python summary module passed 12 synthetic checks covering empty/unrelated lines, minimum draws, inclusive slow threshold, start/end boundaries, median, pipeline classification, missing budget records, unordered diagnostics, and the 0.5-second correlation boundary. Additional robustness observation: a frame-like line with timestamp 2026-99-27T12:00:00.000Z raises an uncaught ValueError in read_samples/datetime.fromisoformat; it stops the summary rather than ignoring/reporting the malformed record. This is a corrupted-input edge case, not a failure on ordinary logs. Tested with Python 3.14; no private logs used.

Verified independently with OpenAI Codex assistance. No gameplay or performance claims.

**@⁠1tsethan** on GitHub · 2026-11-27 23:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/426#issuecomment-7229809921) Tested PR commit: `1d2880ac24db7fe7ddbc3b018afa4a70352c55d1`. The Python summary module passed 12 synthetic checks covering empty/unrelated lines, minimum draws, inclusive slow threshold, start/end boundaries, median, pipeline classification, missing budget records, unordered diagnostics, and the 0.5-second correlation boundary. Additional robustness observation: a frame-like line with timestamp `2026-99-27T12:00:00.000Z` raises an uncaught `ValueError` in `read_samples`/`datetime.fromisoformat`; it stops the summary rather than ignoring/reporting the malformed record. This is a corrupted-input edge case, not a failure on ordinary logs. Tested with Python 3.14; no private logs used. Verified independently with OpenAI Codex assistance. No gameplay or performance claims. <!-- victory-native-validation-20261128 -->
Author
Owner

@⁠ANDREANIADS on GitHub · 2026-11-28 14:39 UTC · original

At 0c9bf8a4, save the line below as synthetic.log and run python scripts/summarize-frame-log.py synthetic.log.

2026-01-01T12:00:00.000000Z 20.0 fps, 50.0 ms/frame (34.0 preparing: synthetic), 4700 draws/frame, dropped 0 without a host pipeline (0 being made)

CPython 3.10.22 exits successfully with samples: 0. CPython 3.11.18 returns samples: 1. The same difference occurs with 1, 3, 6 and 9 fractional digits. If 3.11+ is the intended minimum, a startup version check and a line in the usage instructions would make this visible.

A separate window edge reproduces on 3.11.18. Append the same line with .100000Z and run with --start 0 --end 0.1. This returns both samples, including the one at the exclusive end. Using .250000Z and --end 0.25 returns only the first sample as expected.

**@⁠ANDREANIADS** on GitHub · 2026-11-28 14:39 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/426#issuecomment-7240835088) At `0c9bf8a4`, save the line below as `synthetic.log` and run `python scripts/summarize-frame-log.py synthetic.log`. ```text 2026-01-01T12:00:00.000000Z 20.0 fps, 50.0 ms/frame (34.0 preparing: synthetic), 4700 draws/frame, dropped 0 without a host pipeline (0 being made) ``` CPython 3.10.22 exits successfully with `samples: 0`. CPython 3.11.18 returns `samples: 1`. The same difference occurs with 1, 3, 6 and 9 fractional digits. If 3.11+ is the intended minimum, a startup version check and a line in the usage instructions would make this visible. A separate window edge reproduces on 3.11.18. Append the same line with `.100000Z` and run with `--start 0 --end 0.1`. This returns both samples, including the one at the exclusive end. Using `.250000Z` and `--end 0.25` returns only the first sample as expected.
Author
Owner

@⁠ToxicmaggotRP on GitHub · 2026-11-28 15:53 UTC · original

+1

**@⁠ToxicmaggotRP** on GitHub · 2026-11-28 15:53 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/426#issuecomment-7241816554) +1
github manually merged commit bc22954f1c into main 2026-11-29 08:22:15 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/trustno1-coder--VIctory-NVIDIA!426
No description provided.