Skip to content

Memtrace v1.2.20

Choose a tag to compare

@Alex793x Alex793x released this 12 Nov 13:07
· 1 commit to main since this release

Memtrace v1.2.20

Starts in seconds, and the graph is there

Improved

  • memtrace start now finds your workspace from the folder you are in. In the workspace folder, or anywhere inside one of its repositories, a plain memtrace start starts the whole workspace and says which one it picked and why, so you no longer type --workspace-file with the full path. When two workspace files fit and nothing says which, it lists the command for each instead of guessing, and memtrace start --no-workspace still starts only the repository you are in.
  • memtrace index works on the folder you point it at, and the data goes where that folder belongs. Inside one repository of a workspace, memtrace index (or memtrace index .) re-indexes that repository into the workspace's index instead of creating a second index inside the repository, and memtrace index --clear there rebuilds that one repository and leaves the others alone. In the workspace folder it still indexes every repository. Use memtrace index --no-workspace if you want a separate index for one repository.
  • Starting Memtrace when nothing changed is now immediate. Memtrace remembers that each repository's graph matched its checkout when it last ran. If no file, branch or commit has changed since, the next start says "Graph is up to date with your checkout" within seconds instead of comparing everything again for minutes.
  • Starting after you edited, pulled or committed while Memtrace was stopped now applies only the files that changed, in the background, while the graph already answers.
  • A large workspace's store opens in seconds. Every start used to read hundreds of thousands of graph links again, because an earlier repair of them had been written where the next start could not find it. The first start after this update repairs that once.
  • memtrace stop returns sooner. The store waited ten seconds at every stop for a connection that Memtrace itself kept open, and Memtrace waited on two more requests to a store it was about to close.
  • Change history (get_evolution) now answers from the last 14 days by default, in seconds instead of minutes: it reads what changed in that window rather than the whole repository, no longer makes other tools wait, and tells you when a longer request was shortened and how to look further back. The limit is a setting, "Longest change-history window".
  • Saving a file is several times faster on a large repository. A save reads no other file unless what the saved file offers them really changed, and keeps what it worked out for the files it did not touch. On a 90,000-symbol repository a one-line change is in the graph in about 4 seconds instead of 19, and a new function in about 7 seconds instead of 26, where find_symbol finds it after about a second. Other repositories keep their graph and Insights, and Memtrace goes quiet as soon as the save is in.
  • The first save after a start costs about what a later one does. Memtrace keeps what it needs for saves when it stops, reads it back at start and prepares the rest in the background, so that save no longer spends most of a minute rebuilding it first.
  • find_symbol answers in a fraction of a second on a repository you are editing on a feature branch, and at once for a name that does not exist. find_code no longer returns a partial answer because it ran out of time.
  • find_dead_code, the complexity ranking, duplicate detection, central symbols, bridge symbols and import cycles answer at once when asked again within five minutes on a repository that has not changed. find_dead_code and get_function_quality_metrics are also several times faster the first time.
  • The whole-repository analyses (find_central_symbols, find_bridge_symbols, find_dependency_path, get_codebase_briefing) now cover the whole repository instead of its first 100,000 symbols and links. On a large repository that can take about a minute the first time, so after 25 seconds they answer that they are still computing instead of running into your client's time limit; the result is kept, and asking again returns it at once.
  • find_hotspots reads the functions that changed in the window instead of every function, and answers in about half the time with the same result.

Changed

  • memtrace start --clear typed inside one repository of a workspace now clears and rebuilds the whole workspace, because that is what start starts there. It asks first on a terminal; pass --yes to skip the question in scripts.
  • The HTTP MCP endpoint (MEMTRACE_TRANSPORT=streamable-http) now listens on this machine only, like the dashboard. Set MEMTRACE_MCP_HOST=0.0.0.0 to accept connections from other machines; inside a container it still listens on every interface. On Windows this ends the firewall's "Allow access" question each time a new version of Memtrace starts.
  • get_changes_since and get_cochange_context cover a bounded window and say when a request was shortened or an answer is partial.
  • Heavy analyses wait their turn for up to 45 seconds instead of being refused after 20, and the message when one is still refused says in plain words what is running and what to do.

Fixed

  • The All repositories graph no longer stays on "Graph view is materializing" while one repository is catching up. Each repository's last picture is drawn at once and the view says it is still catching up; one repository that is behind no longer hides the others.
  • An open dashboard no longer keeps Memtrace busy. A blank All repositories view asked for the graph every few seconds, and each request started another linking pass that used several processor cores for as long as the page stayed open.
  • After an ordinary linking pass the graph of the other repositories no longer reads as out of date, which is why the All repositories view sometimes showed some repositories and sometimes none.
  • Stopping Memtrace no longer makes the next start wait minutes on "Still opening the store ...". The store now saves the state of its search index every time it stops, however busy it is, and while it sits idle, so a restart, a closed terminal or a Windows restart opens a large workspace in seconds instead of 10 to 35 minutes. This also holds when you stop Memtrace while it is still busy starting up.
  • A large repository with uncommitted changes can be caught up after a restart. The comparison stopped at a fixed 64 MB, so a repository above about 490,000 symbols and links stayed "catching up" for as long as Memtrace ran.
  • Saving on a feature branch of a large repository no longer fails and leaves the repository waiting for repair. A save that changes nothing there now takes a third of a second instead of eight.
  • After saves, the graph has exactly the relationships a full index of the same files gives. Saving one file could add a second "passes a callback" link between two functions in a file you never touched.
  • A start after many files changed is no longer refused; it finishes.
  • Large repositories are no longer refused by fixed memory figures: the start-up repair that removes duplicate records now runs on a repository of any size, a save can continue from the last verified index, a branch created from a large repository is recorded, and history replay starts, where each used to stop at 64 MB or 100,000 records whatever the machine. Only a memory limit you set yourself stops this work, and the message names it.
  • A save is no longer held back because Memtrace's own memory estimate had nothing left for it on a machine with memory to spare; it used to write the new symbols, leave their relationships out and repair the repository afterwards. Under a memory limit you set, the message says it is your limit and how to raise it.
  • A save that needed repair no longer waits ten minutes before the repair starts. It waits only while your computer is short of memory, and Activity says so.
  • Tools are no longer refused with "ignore scope is busy" while Memtrace is writing. They answer at once and leave out files your ignore rules exclude.
  • preflight_check, calculate_cyclomatic_complexity, find_hotspots, get_function_quality_metrics, get_changes_since and get_cochange_context no longer wait behind heavier tools or background passes and are no longer answered "graph lane busy".
  • Cortex now answers on every repository Memtrace serves, including the all-repositories view, repositories whose watcher is still starting, and linked git worktrees; a recall no longer waits behind a capture, and one slow call can no longer lock Cortex out ("IPC circuit open" is gone).
  • Cortex governance lists documents by their path inside the repository instead of the full path on disk.
  • get_daily_briefing failed on a repository indexed on a feature branch; it works again.
  • get_symbol_context now says when it shows only the first callers ("Showing 5 of 45 callers") instead of looking like the whole list.
  • list_communities and get_codebase_briefing work on large repositories; they used to fail.
  • get_evolution's "top changed files" no longer lists files that did not change.

Install

npm install -g memtrace