diff options
| author | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-11-27 04:28:00 +0100 |
|---|---|---|
| committer | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-11-27 04:28:00 +0100 |
| commit | 2bf19e69082eb8b4c1ce6dc27ca90f043cfa0c61 (patch) | |
| tree | 0ab3eb7113980d74f43c996a98fce155aea7f85a /docs | |
| parent | d1dff7949be62b6609c3c2ca937df7f50fbf1305 (diff) | |
xgameruntime: LEONIDA_TRACE_XGAMESAVE logs every XGameSave call
With LEONIDA_TRACE_XGAMESAVE=1 the offline XGameSaveImpl logs one
"[rt] xgamesave:" line per XGameSave* and XGameSaveFiles* call: the call,
its handles, container and blob names, sizes and HRESULT, with the
milliseconds since the process started and the thread id. An async call
also logs when begin() schedules its job, when the work runs (and how
long it waited on the queue), when it completes and when the title
collects the result, all naming the title's XAsyncBlock. Blob contents
are never logged. Off by default: a call then pays one relaxed load.
xgameruntime_gamesave_test turns it on through a test hook, writes and
reads a blob (sync and async) and checks the lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/runtime_imports.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/runtime_imports.md b/docs/runtime_imports.md index e408d223d..b7c4e37b3 100644 --- a/docs/runtime_imports.md +++ b/docs/runtime_imports.md | |||
| @@ -569,7 +569,16 @@ trio (23-25). What the slots must answer is still **not measured**; that is the | |||
| 569 | and `XGameSaveGetContainerInfo` of a missing container returns `S_OK` without a callback. `syncOnDemand` is | 569 | and `XGameSaveGetContainerInfo` of a missing container returns `S_OK` without a callback. `syncOnDemand` is |
| 570 | ignored: nothing syncs offline. | 570 | ignored: nothing syncs offline. |
| 571 | 571 | ||
| 572 | `xgameruntime_gamesave_test` drives every slot against a temporary `LEONIDA_SAVE_DIR`. | 572 | `LEONIDA_TRACE_XGAMESAVE=1` logs every call of these slots as one `[rt] xgamesave:` line on stderr, with the |
| 573 | milliseconds since the process started and the thread: the handles, container and blob names, sizes and | ||
| 574 | HRESULT, never the blob contents. An async call (`InitializeProvider`, `GetRemainingQuota`, `DeleteContainer`, | ||
| 575 | `ReadBlobData`, `SubmitUpdate`, `FilesGetFolderWithUi`) logs four more lines: `schedule` when `XAsyncSchedule` is | ||
| 576 | called, `run` when the work starts on the title's queue (`waited=` is the gap), `complete` with its HRESULT and | ||
| 577 | the `...Result` call that collects it. A job that waits behind a stalled queue, or a result the title never | ||
| 578 | collects, then shows in a run's log. Unset, nothing is logged beyond the one line when the provider opens. | ||
| 579 | |||
| 580 | `xgameruntime_gamesave_test` drives every slot against a temporary `LEONIDA_SAVE_DIR`. With the trace on, it | ||
| 581 | checks the lines of a write and a read. | ||
| 573 | 582 | ||
| 574 | `XStoreImpl` (`runtime/shims/xgameruntime_store.cpp`), from the same layout; the game-license struct is measured | 583 | `XStoreImpl` (`runtime/shims/xgameruntime_store.cpp`), from the same layout; the game-license struct is measured |
| 575 | on the executable, the rest is not: | 584 | on the executable, the rest is not: |