MemBrowse

v1.0.0
com.membrowse/membrowse Checked 1 day ago Published 13 days ago

Firmware 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.

ParameterTypeDescription
project *stringThe 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.

ParameterTypeDescription
project *stringThe 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.
limitintegerSection, file and metric changes per target (default 10, max 200).
refstringThe 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.
targetstringOnly 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'.

ParameterTypeDescription
project *stringThe 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 *stringTarget name (see list_targets).
limitintegerCommits per page (default 30, max 200).
offsetintegerCommits to skip, for paging (default 0).
only_changedbooleanSkip commits whose build was identical to the previous one (default true).
refstringWhere to start: a full commit SHA, a SHA prefix (7+ characters), or a branch or tag name. Default: the head of the default branch.
regionstringOnly 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'.

ParameterTypeDescription
project *stringThe 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 *stringTarget name (see list_targets).
limitintegerCommits per page (default 30, max 200).
metricsarrayOnly these metrics (default: all of the target's metrics).
offsetintegerCommits to skip, for paging (default 0).
refstringWhere 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.

ParameterTypeDescription
project *stringThe 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 *stringTarget name (see list_targets).
basestringThe 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_targetstringCompare with this other target of the project ('base' then names its build).
headstringThe 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.
levelstringDetail to return (default 'regions'). 'symbols' and 'files' load full reports and are slower.
limitintegerMaximum rows to return (default 50, max 200).
name_containsstringOnly sections, files or symbols whose name contains this text (case-insensitive).
regionstringOnly this memory region, e.g. FLASH or RAM.
sectionstringOnly 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.

ParameterTypeDescription
project *stringThe 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 *stringTarget name (see list_targets).
detailsbooleanAdd address, binding, line, object and archive to each symbol (default false).
file_containsstringOnly symbols whose source file path contains this text (case-insensitive).
group_bystringReturn 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.
limitintegerMaximum rows to return (default 50, max 200).
name_containsstringOnly symbols whose name contains this text (case-insensitive).
object_containsstringOnly symbols whose archive or object file path contains this text (case-insensitive).
offsetintegerRows to skip, for paging (default 0).
refstringThe build: a full commit SHA, a SHA prefix (7+ characters), or a branch or tag name. Default: the head of the default branch.
regionstringOnly this memory region, e.g. FLASH or RAM.
sectionstringOnly 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.

ParameterTypeDescription
project *stringThe 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 *stringTarget name (see list_targets).
refstringThe build: a full commit SHA, a SHA prefix (7+ characters), or a branch or tag name. Default: the head of the default branch.