Skip to content

Scripts: compare activity memory samples at matching times - #1854

Open
rrrarrra9 wants to merge 1 commit into
xcl-dev:mainfrom
rrrarrra9:codex/activity-memory-1773
Open

rrrarrra9 wants to merge 1 commit into
xcl-dev:mainfrom
rrrarrra9:codex/activity-memory-1773

Conversation

@rrrarrra9

@rrrarrra9 rrrarrra9 commented Nov 24, 2026 •

Copy link
Copy Markdown

Part of #1773. Compare memory counters from live or finished XCL logs at the same elapsed time. The script selects the last complete sample at or before the requested time and distinguishes stale or missing data from zero usage.

What is in it

  • scripts/activity-memory.ps1 reports process commit, local and non-local usage, texture and sparse pools, and optional DXGI budgets. It ignores a partially written budget line and compares sample age with the exact lag limit.
  • scripts/activity-memory.tests.ps1 covers live-log sharing, selection, truncated lines, missing and stale samples, both budget layouts, and path-free output. The README includes the comparison command.

Tested

  • On Windows 11 build 26300.9974, scripts/activity-memory.tests.ps1 at f830d4132a07adbe3a78b266704f649eac2babde returned activity-memory: ok and exit 0 in Windows PowerShell 5.1.26100.9818 and PowerShell 7.6.9. Both new edge cases failed with the previous parser.
  • Read an active XCL activity log while XCL was writing. For two completed logs, a request at 119 s selected samples at 118.883 and 118.508 s, with null budgets because neither log reported them.
  • Rebased onto 426a5a7. #2245 corrected the two Rust assertions that failed in the previous CI run and in main. The base CI passed. The new head has its own CI run.
  • Independent verification on the previous b666ff8 passed in both shells. This rebase leaves the script diff unchanged.

Not tested

  • PowerShell on other operating systems. The timestamp comparison assumes the two recordings reached the same workload phase.

AI use

  • OpenAI Codex (gpt-6.2-sol on the prior revision, GPT-6 on this revision, exact variant not exposed) implemented the parser and fixtures, ran the checks, and drafted the report.

@futurepro62

Copy link
Copy Markdown

Tested exact head fd3dca3, script tests only, since this PR has no test report yet.

Tested

  • Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here).
  • powershell.exe -NoProfile -File scripts/activity-memory.tests.ps1 at the head: exit 0, activity-memory: ok.
  • The PR's test file against current main's script (689f2db): not applicable: activity-memory.ps1 is new in this PR, so main has nothing for the test to run.

Not tested

  • PowerShell 7, the CI workflow itself, a game (no runtime code changed).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

@raylitebull

Copy link
Copy Markdown
Member

Diff audited (scripts/activity-memory.ps1, scripts/activity-memory.tests.ps1, README.md) and CI workflow approved (running). Needs Build and test green plus independent verification of activity-memory.tests.ps1 on PowerShell 5.1 / 7.

@rrrarrra9
rrrarrra9 force-pushed the codex/activity-memory-1773 branch from 71e6e38 to b666ff8 Compare November 25, 2026 11:00
@raylitebull

Copy link
Copy Markdown
Member

Updated review on rebased b666ff8:

  • Diff audited (scripts/activity-memory.ps1, scripts/activity-memory.tests.ps1, README.md) and CI workflow approved (45600383260).

Remaining before merge: Build and test green plus fresh independent PowerShell verification of scripts/activity-memory.tests.ps1 on b666ff8.

@RavenCurseBurg

RavenCurseBurg commented Nov 25, 2026 •

Copy link
Copy Markdown

Re-tested head f830d4132a07adbe3a78b266704f649eac2babde on the same Windows host. Both powershell.exe 5.1.26100.9711 and pwsh.exe 7.6.9 ran -NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts/activity-memory.tests.ps1 and printed activity-memory: ok (exit 0). The tested script and its fixture have identical Git blobs on this head and b666ff8. The five additional synthetic cases below were run on the earlier head. OpenAI Codex (GPT-6) ran this recheck.


Tested PR head b666ff8b57c3e4351eee086405aa0e47a265b7d6 on Windows 11 24H2 (26100.9711), i7-13700, RTX 4060. All checks here use synthetic log text on the CPU.

Tested

  • powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts/activity-memory.tests.ps1 and scripts/activity-memory.tests.ps1 under PowerShell 7.6.9 both printed activity-memory: ok (exit 0). Windows PowerShell was 5.1.26100.9711.
  • Independent fixture on both shells, 5 passed, 0 failed, 0 skipped per shell. A log contained complete samples at 12 s and 10 s, in that order, then a truncated 14 s line. At 9 s the result was no_sample. At 11 s it returned the 10 s / 100 MiB sample. At 14 s it returned the 12 s / 120 MiB sample. With the default 3 s lag limit, 15 s was ok and 15.001 s was stale with a null commit metric.

Not tested

Live title logs, GPU execution and the Rust workspace suite.

AI use

OpenAI Codex (GPT-6) inspected the scripts, wrote and ran the independent fixture, ran the upstream fixture, and drafted this report.

Report the last complete comparable activity sample from active or finished logs, without sharing their paths. Ignore truncated budget lines and compare sample age with the exact lag limit.

Part of xcl-dev#1773.

Assisted-by: OpenAI Codex (GPT-6)
@rrrarrra9
rrrarrra9 force-pushed the codex/activity-memory-1773 branch from b666ff8 to f830d41 Compare November 25, 2026 11:31
@throny throny added the goal:world-load Bears on the retail title getting past world loading label Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

goal:world-load Bears on the retail title getting past world loading

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants