mirror of
https://github.com/wolfpld/tracy.git
synced 2026-07-24 15:09:15 +00:00
Smoke-testing the lock fix against a real 143M-zone capture surfaced a second concurrent-mutation source: file loads spawn a background thread that finishes populating zone/symbol statistics after Worker construction returns, so get_all_zone_stats() et al. could silently come back empty or partial with no way to tell "not built yet" from "genuinely empty". Adds is_background_done (a relaxed atomic, same as is_connected, so no locked() wrapper needed) and surfaces it as background_done in list_instances, with load_capture's docstring pointing callers at it.