mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-24 19:24:47 +00:00
Automatic eviction only ever covered disconnected live instances (_evict_disconnected_idle explicitly skipped anything with a path), so a file-loaded capture -- potentially many GB -- stayed resident forever until the TRACY_MCP_MAX_INSTANCES cap forced an LRU eviction to make room. list_instances already documented "unload_capture instead of waiting for automatic eviction" as the alternative, but no automatic path actually existed for this case. Generalizes the sweep into _evict_idle: file-loaded instances now get their own idle-since-last-use TTL (TRACY_MCP_FILE_IDLE_TTL_S, default 1800s matching the disconnected-live TTL). Safe to evict on a timer since they're already durably on disk -- load_capture brings them back. Connected live instances are untouched, same as before.