Repository navigation
Step 1: report stage timings and resource usage - #608
Merged
Merged
Conversation
This was referenced Nov 2, 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.
Step 1 currently gives GUI, CLI and manual-save elapsed values different boundaries. Initial loading/cache preparation and result writing are missing from the GUI's final elapsed value, and resource use during loading is hidden by a blocked UI.
Add per-run accounting shared by the progress window, completion summary and
HDMapping_results_*.json:RunReportonce as a position-independent static library and link every consumer of the shared odometry sources, including the viewers, calibration tools and Python bindings. Native Windows libraries and thread support are declared on that common target.run_analysiscontaining stage/resource summaries, operation history, completion/error status and sampling coverage. Keep existing result metadata and label the legacy elapsed field's scope. Write reports through a temporary file and update them after cleanup.Measurement boundaries are documented in
doc/processing_report.md. Final report serialization itself is outside measured operation intervals. GUI cache is explicitly retained for later work and cleaned up on exit; CLI includes immediate cleanup. Private commit is not physical pagefile occupancy. GPU adapter sums may include shared allocations more than once. Cache-size accounting covers completed writes from this run, excluding unmodified files left by an earlier run.Memory is sampled about once per second and disk space every five seconds, independently of frame rate, with bounded stage-boundary refreshes. OS queries run outside the report mutex; the GUI reads aggregates. The Windows GPU counter query is reused across runs. Sampling/setup/cache-accounting costs are included in the report: one local ~30 s run used ~25 ms for subsequent resource queries plus cache bookkeeping, with a separate ~0.36 s cold GPU-provider initialization; a reused query took ~0.4 ms. These are local observations, not a performance guarantee.
Validation: Windows x64 Release builds for both Step 1 entry points, the forestry entry point, both raw-data viewers and both calibration tools; all four actual Python 3.12 extension modules build and import. Ubuntu 24.04 WSL/GCC 13: the actual shared reporting CMake target builds and passes runtime checks, links into an executable and a Python 3.12 extension module, and the extension imports and reports Linux memory correctly. Existing Step 1 tests and local GUI/CLI checks cover responsive loading, raw timestamp span, actual pause/resume, re-export, spill reset/removal, cancellation, invalid input, writer failure and final JSON updates. Six trajectory CSV files were byte-identical between the comparison runs. clang-format 21 and
git diff --checkpass. Local test scripts, fixtures, outputs and binaries are not included.Persistent dialog locations will be proposed in a separate PR.
Fixes #600.