MemBrowse
v1.0.0Firmware FLASH/RAM history, build diffs, symbol sizes and benchmarks for embedded projects
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_projects List projects
List the MemBrowse projects this API key's account owns or is a member of. Needs an account API key. For a public project, skip this tool and call list_targets with its GitHub 'owner/repo'.
list_targets List targets
List a project's build targets (firmware binaries) with the current used and limit size of each memory region at the head of the default branch.
| Parameter | Type | Description |
|---|---|---|
project * | string | The project: a public project's GitHub 'owner/repo' (no API key needed), or, with an API key, a project id or name from list_projects. |
get_commit_summary Commit memory summary
For one commit, show every target's memory change against its base build: per region, the largest section and source-file changes, budget alerts, and, for targets with benchmark metrics, each metric's change. For a pull request, pass the PR's head commit SHA: its base is the tip of the PR's base branch, so the result is the whole PR's change. Use it to review a pull request or check whether a commit grew memory or moved a benchmark.
| Parameter | Type | Description |
|---|---|---|
project * | string | The project: a public project's GitHub 'owner/repo' (no API key needed), or, with an API key, a project id or name from list_projects. |
limit | integer | Section, file and metric changes per target (default 10, max 200). |
ref | string | The commit: a full commit SHA, a SHA prefix (7+ characters), or a branch or tag name. Default: the head of the default branch. For a pull request, its head commit SHA. |
target | string | Only this target (default: all). |
get_memory_history Memory history
List a target's commits, newest first, with each memory region's used size and the change that commit made. Use it to see how memory evolved and to find the commits that grew it (the largest positive 'delta'); page back with 'offset'.
| Parameter | Type | Description |
|---|---|---|
project * | string | The project: a public project's GitHub 'owner/repo' (no API key needed), or, with an API key, a project id or name from list_projects. |
target * | string | Target name (see list_targets). |
limit | integer | Commits per page (default 30, max 200). |
offset | integer | Commits to skip, for paging (default 0). |
only_changed | boolean | Skip commits whose build was identical to the previous one (default true). |
ref | string | Where to start: a full commit SHA, a SHA prefix (7+ characters), or a branch or tag name. Default: the head of the default branch. |
region | string | Only this memory region, e.g. FLASH or RAM. |
get_metric_history Benchmark metric history
List a target's benchmarked commits, newest first, with each benchmark metric's value (cycle counts, timings, scores that CI attached) and its change from the previous commit that had the metric. Use it to see how a benchmark evolved and to find the commit that moved it; page back with 'offset'.
| Parameter | Type | Description |
|---|---|---|
project * | string | The project: a public project's GitHub 'owner/repo' (no API key needed), or, with an API key, a project id or name from list_projects. |
target * | string | Target name (see list_targets). |
limit | integer | Commits per page (default 30, max 200). |
metrics | array | Only these metrics (default: all of the target's metrics). |
offset | integer | Commits to skip, for paging (default 0). |
ref | string | Where to start: a full commit SHA, a SHA prefix (7+ characters), or a branch or tag name. Default: the head of the default branch. |
compare_builds Compare builds
Compare two builds of a target. Always returns each region's old and new size; 'level' adds the changed sections, source files or symbols, sorted by size of change. Without 'base', the head is compared with the build it was compared with when it was uploaded: for a pull request's head commit that is the tip of the PR's base branch, so the result is the whole PR; for a pushed commit it is the branch's previous build, so the result is what that one commit did. With 'base_target', the base is a build of another target instead, to see which target already does without a symbol.
| Parameter | Type | Description |
|---|---|---|
project * | string | The project: a public project's GitHub 'owner/repo' (no API key needed), or, with an API key, a project id or name from list_projects. |
target * | string | Target name (see list_targets). |
base | string | The older build, in the same forms. Default: the build 'head' was compared with when it was uploaded (for a pull request, the tip of its base branch); with 'base_target', the head of that target's def… |
base_target | string | Compare with this other target of the project ('base' then names its build). |
head | string | The newer build: a full commit SHA, a SHA prefix (7+ characters), or a branch or tag name. Default: the head of the default branch. For a pull request, its head commit SHA. |
level | string | Detail to return (default 'regions'). 'symbols' and 'files' load full reports and are slower. |
limit | integer | Maximum rows to return (default 50, max 200). |
name_contains | string | Only sections, files or symbols whose name contains this text (case-insensitive). |
region | string | Only this memory region, e.g. FLASH or RAM. |
section | string | Only this section, e.g. .text (sections and symbols levels). |
list_symbols List symbols
List the largest symbols in one build of a target, optionally filtered by region, section, source file, object or name, or totalled per section, library, object, file or directory with 'group_by'. Use it to see what takes the space.
| Parameter | Type | Description |
|---|---|---|
project * | string | The project: a public project's GitHub 'owner/repo' (no API key needed), or, with an API key, a project id or name from list_projects. |
target * | string | Target name (see list_targets). |
details | boolean | Add address, binding, line, object and archive to each symbol (default false). |
file_contains | string | Only symbols whose source file path contains this text (case-insensitive). |
group_by | string | Return totals per group instead of symbols. 'section' sizes whole sections, including string literals no symbol names ('unnamed_bytes'); name_contains then matches the section name. |
limit | integer | Maximum rows to return (default 50, max 200). |
name_contains | string | Only symbols whose name contains this text (case-insensitive). |
object_contains | string | Only symbols whose archive or object file path contains this text (case-insensitive). |
offset | integer | Rows to skip, for paging (default 0). |
ref | string | The build: a full commit SHA, a SHA prefix (7+ characters), or a branch or tag name. Default: the head of the default branch. |
region | string | Only this memory region, e.g. FLASH or RAM. |
section | string | Only this section, e.g. .bss. |
export_symbols Export symbol table
Get one build's whole symbol table as a file, to analyse with code (Python, pandas, DuckDB, jq) when the other tools cannot answer the question. Returns a one-time download, not the symbols: run the returned 'command' in a shell to save the file, then work on the file, so the table never enters the conversation. Needs a shell that can reach the MemBrowse server.
| Parameter | Type | Description |
|---|---|---|
project * | string | The project: a public project's GitHub 'owner/repo' (no API key needed), or, with an API key, a project id or name from list_projects. |
target * | string | Target name (see list_targets). |
ref | string | The build: a full commit SHA, a SHA prefix (7+ characters), or a branch or tag name. Default: the head of the default branch. |