Community plugin

1Lry1 / dsh-workbench-memmap

DSH workbench: a dock host, GitCraft and Downloader pages, a shared host kit, and a one-shot suite bundle.

  • JavaScript
  • MIT
  • 0 stars
  • Nov 23, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-workbench-memmap is a DSH plugin published from the packages/memmap package in the 1Lry1/dsh-workbay repository.

  • Listing statusManifest verified
  • Manifest checkedNov 21, 2026
  • Packagedsh-workbench-memmap
  • Package pathpackages/memmap
  • Package version0.1.0
  • DSH engine>=0.2.1-rc.1 <0.3.0-0
  • Source commite4c9db4
  • Repository createdOct 30, 2026

Capabilities and topics

cordisdeepseek-harnessdshgit-gui
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

Cached versionView on GitHub

dsh-workbench-memmap

Workbench page that turns a firmware build's linker map into a memory report you can read without leaving DSH.

What it does

  1. Detect — looks for the newest map under the workspace (Output/bin/map.txt, a loose map.txt, or up to three ancestor SDK directories). The analysis script itself is bundled with this plugin (tools/memmap_report.py), so a project does not need its own tools/ copy; a workspace copy still wins. When no map is found the page accepts a manual absolute path and remembers it.
  2. Run — spawns the SDK's own script with an argv array (no shell), writing memmap_data.json + memmap_report.html into the plugin data directory.
  3. Show — storage cards (internal RAM / PSRAM / Flash), per-region usage with a category composition bar, the delta against the previous run, recent runs, the largest variables/buffers and top object files — plus the full generated HTML report embedded in a blob iframe.
  4. Auto-run — entering the page with a map.txt that is newer than the last run (or with no history at all) runs the analysis once, without a click.

Nothing is written into the user's repository. Each run lives under:

~/.dsh/workbench/memmap/roots/<sha1(workspace)>/runs/<runId>/
  memmap_data.json
  memmap_report.html
  summary.json

The last keepRuns (default 10) runs are kept; older ones are pruned.

Requirements

  • Python 3 on PATH (or a configured command). The script itself is standard-library only.
  • The SDK tool at tools/memmap_report/memmap_report.py, and a GNU ld map.txt build artifact. lld / readelf maps are rejected by the script and the page shows its stderr verbatim.

Config

KeyDefaultMeaning
python"python"Interpreter command. String, or an array for py -3 / venv paths.
timeoutMs180000Kill the analysis after this long.
keepRuns10Runs kept per workspace (1–50).
dataDir~/.dsh/workbench/memmapRoot for run artefacts.

RPC surface

POST /dsh-workbench-memmap/api/<method>

MethodPurpose
detect{ root } → tool path, maps, python status, latest run summary, history
run{ root, map? } → summary + delta + history + stdout
runs{ root } → history entries
report{ root, runId } → the generated HTML

Tests

node --test packages/memmap/tests/host.test.mjs packages/memmap/tests/client.test.mjs

The host tests boot the plugin with a fake interpreter (tests/fixtures/fake_memmap_runner.mjs), so they never depend on Python being installed; the fake can be told to fail or to grow a region, which is how the failure and baseline-delta paths are covered.

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/1Lry1/dsh-workbay/packages/memmap)