GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - membrowse/membrowse-action: Track and analyze binary size and memory footprint in embedded firmware

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
BranchesTags
Open more actions menu

Latest commit

 

History

299 Commits
299 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude-plugin
.claude-plugin
 
 
.claude/skills/bump-version
.claude/skills/bump-version
 
 
.github/workflows
.github/workflows
 
 
comment-action
comment-action
 
 
logos
logos
 
 
membrowse
membrowse
 
 
metrics-action
metrics-action
 
 
onboard-action
onboard-action
 
 
screenshots
screenshots
 
 
scripts
scripts
 
 
skills/membrowse-integrate
skills/membrowse-integrate
 
 
tests
tests
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
DEPLOYMENT.md
DEPLOYMENT.md
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
README.md
README.md
 
 
action.yml
action.yml
 
 
membrowse-logo.svg
membrowse-logo.svg
 
 
membrowse.json
membrowse.json
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

MemBrowse logo

MemBrowse

No more MEMORY { FLASH, RAM } surprises.

PyPI version Python Versions License: GPL v3 Downloads GitHub Marketplace — verified creator GitHub stars

MemBrowse is continuous memory footprint tracking for firmware: flash and RAM on every commit, for every target, with the full history.

A size script or the linker tells you how big today's build is. MemBrowse keeps every build, so when flash climbs you can see which pull request used it, instead of bisecting weeks of commits after the linker fails.

  • Every pull request gets a comment with the bytes it adds or removes per region, and the symbols that grew.
  • Every target keeps its history, so "where did the flash go last month?" has an answer.
  • Every product shows on one screen with how close it is to its limit, and budgets fail CI before a target runs out.

The CLI works locally with no account. Sign up free for PR comments, history and budgets.

šŸ“– Documentation: docs.membrowse.com

Flash usage per commit for one board, jumping from 77% to 93% on the commit 'Update TLS library' (+81.92 KB)

Firmware teams tracking memory with MemBrowse

TinyUSB
TinyUSB
Meshtastic
Meshtastic
Apache NuttX
Apache NuttX
Flipper Devices
Flipper Devices
ZSWatch
ZSWatch
wolfSSL
wolfSSL
RT-Thread
RT-Thread
Adafruit
Adafruit
CMRX
CMRX
SuperTinyKernel
SuperTinyKernel
Wilderness Labs
Wilderness Labs
Rabbit Hole Computing
Rabbit Hole Computing

"Loving MemBrowse so far. We've been trying to hand-roll solutions to this for far too long, and they just kept breaking." — Austin, Meshtastic

See the public dashboards →

Quick Start

Analyze your firmware locally (no account required)

pip install membrowse

membrowse report build/firmware.elf "src/linker.ld"

Example output:

ELF Metadata: build/firmware.elf  |  Arch: ARM  |  Machine: EM_ARM  |  Toolchain: gcc-10.3.1  |  Entry: 0x0802015d  |  Type: ET_EXEC
==========================================================================================================================================================

Region               Address Range                                Size                Used                Free  Utilization
--------------------------------------------------------------------------------------------------------------------------------------------
FLASH                0x08000000-0x08100000             1,048,576 bytes       365,192 bytes       683,384 bytes  [ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘] 34.8%
  └─ FLASH_START     0x08000000-0x08004000                16,384 bytes        14,708 bytes         1,676 bytes  [ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–‘ā–‘ā–‘] 89.8%
     • .isr_vector              392 bytes
     • .isr_extratext        14,316 bytes
  └─ FLASH_TEXT      0x08020000-0x08100000               917,504 bytes       350,484 bytes       567,020 bytes  [ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘] 38.2%
     • .text                350,476 bytes
RAM                  0x20000000-0x20020000               131,072 bytes        26,960 bytes       104,112 bytes  [ā–ˆā–ˆā–ˆā–ˆā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘ā–‘] 20.6%
  • .bss                     8,476 bytes
  • .heap                   16,384 bytes
  • .stack                   2,048 bytes

Top 20 Largest Symbols
======================

Name                                     Address                    Size  Type       Section              Source
--------------------------------------------------------------------------------------------------------------------------------------------
usb_device                               0x20000a30          5,444 bytes  OBJECT     .bss                 usb.c
mp_qstr_const_pool                       0x08062b70          4,692 bytes  OBJECT     .text                qstr.c
mp_execute_bytecode                      0x080392f9          4,208 bytes  FUNC       .text                vm.c
...

See the CLI reference for JSON output, symbol filtering, uploading and historical onboarding.

Track memory in CI (GitHub Actions)

Add a workflow that reports each push and comments the diff on pull requests:

name: Memory Analysis
on: [push, pull_request]

jobs:
  analyze:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Build firmware
        run: make all # your build commands

      - name: Analyze memory
        uses: membrowse/membrowse-action@v1
        with:
          elf: build/firmware.elf
          ld: "src/linker.ld"
          target_name: stm32f4
          api_key: ${{ secrets.MEMBROWSE_API_KEY }}

      - name: Post PR comment
        if: github.event_name == 'pull_request'
        uses: membrowse/membrowse-action/comment-action@v1
        with:
          api_key: ${{ secrets.MEMBROWSE_API_KEY }}
          commit: ${{ github.event.pull_request.head.sha }}

Add your API key as a repository secret named MEMBROWSE_API_KEY (get one free). The action is published on the GitHub Marketplace by a verified creator.

To fill in the history for existing commits, see onboarding. For budgets, custom comment templates and every action input, see docs.membrowse.com.

Track benchmark metrics

Attach benchmark results (cycle counts, timings, scores) to a commit; MemBrowse plots them next to the memory history and compares them between builds. The target must already have a memory report. Uploading a metric again replaces its value, so separate CI jobs can each post their own.

      - name: Upload benchmark metrics
        uses: membrowse/membrowse-action/metrics-action@v1
        with:
          target_name: stm32f4
          api_key: ${{ secrets.MEMBROWSE_API_KEY }}
          metrics: |
            Boot time=${{ steps.bench.outputs.boot_ms }} ms
            CoreMark=${{ steps.bench.outputs.coremark }}
          # or: metrics_file: bench.json

From any other CI system, or locally:

membrowse metrics -m "Boot time" "$BOOT_MS" ms -m CoreMark "$SCORE" \
    --target-name stm32f4 --api-key "$MEMBROWSE_API_KEY"

membrowse metrics --file bench.json \
    --target-name stm32f4 --api-key "$MEMBROWSE_API_KEY"

bench.json is an array of {"name": "CoreMark", "unit": "score", "value": 389.5} entries (unit is optional), the same array github-action-benchmark takes for custom tools. Run membrowse metrics --help for commit selection (--commit-sha, --github). Like memory reports, pull requests to a public repository can upload metrics without an API key (fork and Dependabot PRs get no secrets); the platform keeps them apart from the metrics your own CI uploads.

Set it up with Claude Code

If you use Claude Code, the MemBrowse plugin finds your build outputs, checks your linker scripts and writes the workflows:

/plugin marketplace add membrowse/membrowse-action
/plugin install membrowse@membrowse-marketplace
/membrowse-integrate

What it reads

MemBrowse reads any ELF file: ARM, RISC-V, Xtensa and more. With DWARF debug info, each symbol is mapped to its source file. Memory regions come from:

  • GNU LD linker scripts (*.ld, *.cmd), including INCLUDEd sub-scripts
  • IAR EWARM ICF files (*.icf)
  • SEGGER Embedded Studio project files (*.emProject)

Linker map files (GNU LD and IAR) add archive and object file attribution. Format detection is based on content, so file extensions don't have to match.

Is your toolchain or layout file not covered? Email [email protected].

Your code stays in CI

  • Only the JSON report is uploaded. Source code and binaries stay in your CI.
  • The CLI and GitHub Action are open source under GPLv3, so you can read exactly what is sent.
  • On-premise deployment runs MemBrowse entirely inside your network. Point the action at it with api_url. Contact us.

Documentation & Support

  • Docs: docs.membrowse.com
  • Issues: https://github.com/membrowse/membrowse-action/issues
  • Support: [email protected]

License

GPLv3. See LICENSE.

About

Track and analyze binary size and memory footprint in embedded firmware

membrowse.com

Topics

binary-sizebloatycicode-qualitycode-sizedeveloper-toolselfembeddedembedded-systemsfirmwarefirmware-analysisfirmware-cifirmware-toolsgithub-actionslinker-maplinker-scriptmap-filesmemorymemory-mapmicrocontroller

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

50 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.