This release is a pre-release and may not be stable for production use.
MemScope
Local-first firmware footprint intelligence for embedded teams.
MemScope analyzes your ELF, MAP, and linker artifacts to give you a clear picture of where your firmware's flash and RAM are going — and gates your CI build when a regression sneaks in. Built for embedded engineers who want SonarQube-style enforcement without sending build artifacts to a cloud.
pip install memscope-fw
Screenshots
A single memscope analyze run on a representative STM32H7-class firmware (Cortex-M7 + FreeRTOS + lwIP + USB CDC, 6 memory regions, ~100 contributing input sections, ~150 symbols) produces this self-contained interactive HTML report — open it in any browser, no internet required, no JS framework to install. Headline cards surface the tightest region (here, RAM_D1 at 99.8% capacity — the kind of near-overflow that's invisible until you flash silicon), total Flash / RAM consumption, and the alignment-waste budget you could reclaim:
Below the fold: Memory Layout Explorer (interactive section bars per region), Visual Insights (top contributors / functions / globals), Region Utilization (per-region capacity, alignment overhead, fragmentation), Section Explorer (drill-down with byte-level lookup), Component Ownership, Issues and Recommendations, Comparison vs baseline, and Diagnostics and Assumptions so reviewers can see exactly what was inferred vs measured. See the full-page screenshot →
memscope diff compares two builds and highlights the regressions that matter — headline byte deltas, per-region growth chart, top regressions and reductions tables, plus a deterministic JSON contract your CI can gate on:
The fixtures used to generate these screenshots are in docs/demo/ — reproducible with python -m memscope analyze --map docs/demo/demo.map --linker docs/demo/demo.ld --html report.html.
License at a glance. MemScope is free — the
memscope-fwdistribution on PyPI is gratis for any use, including commercial use by companies of any size. No license key, no watermark, no time limit, no seat count, no procurement required, and no feature locked behind a purchase. Runanalyze,validate,diff, and--strictCI gating today, indefinitely, on as many machines and build agents as you like. Need something MemScope doesn't ship — a toolchain it can't parse, an internal format, a bespoke adaptation? That's arranged separately by email; it isn't part of this distribution and doesn't change your right to keep using it. Closed-source proprietary licence — not OSI / FSF open source. Full text: see the License section on this PyPI page (or theLICENSEfile shipped inside the installed wheel).
What it does
- Inspects ELF + MAP + linker scripts and reconstructs the per-region, per-section, per-symbol, per-component memory layout — everything that's actually placed in your firmware image and what each part costs.
- Reports in three forms from a single run: a compact terminal summary for CI logs, a versioned JSON for scripts and dashboards, and a self-contained interactive HTML for engineers to explore.
- Gates CI builds when a budget is busted, a region overflows, or a baseline diff exceeds your threshold — fail-fast with deterministic exit codes.
- Compares two builds side-by-side via
memscope diff, showing top regressions and reductions across regions, sections, symbols, and components. - Runs entirely offline. MemScope makes no network calls. No build artifacts ever leave your machine. No cloud backend.
Why teams pick MemScope over rolling their own scripts
| Capability | Hand-rolled scripts | MemScope |
|---|---|---|
| Parse ELF + MAP + linker config consistently across toolchains | Different per project | One CLI, GNU + IAR + Keil + Clang/LLD all supported (dedicated parsers per toolchain, normalized to a single internal model) |
| Stable JSON schema your CI can rely on | Brittle | Versioned + validate subcommand |
| Drop-in CMake integration | DIY | cmake/FirmwareFootprint.cmake |
| Interactive HTML report for design reviews | None | Self-contained, no internet needed to open |
| CI gating with friendly error messages | grep + bash | --strict exit codes |
| Multi-core / multi-region partition awareness | Usually missing | First-class |
Install
pip install memscope-fw
Requires Python ≥ 3.10. Wheels are published per-platform for Windows (x86_64) + Linux (manylinux2014, x86_64) + macOS (Apple Silicon / arm64), each on Python 3.10 / 3.11 / 3.12 / 3.13 / 3.14.
5-minute quick start
# 1. Analyze a single build — produces report.html you can open in any browser
memscope analyze \
--elf path/to/firmware.elf \
--map path/to/firmware.map \
--linker path/to/linker.ld \
--json report.json \
--html report.html
# 2. Compare two builds (e.g. before/after a refactor)
memscope diff \
--current-json report.json \
--baseline-json baseline.json \
--html diff.html
# 3. Gate CI on a regression budget (exits non-zero if violated)
memscope analyze --strict \
--elf firmware.elf --map firmware.map --linker linker.ld \
--baseline-json baseline.json
The HTML report is fully self-contained — D3, ECharts, and all interactive visualizations are bundled inline, so it works in air-gapped CI environments and can be archived as a single file.
What you get
Everything below is in the memscope-fw distribution on PyPI, free for
any use including commercial use inside a company. There is no paid
tier, no feature gate, and no upgrade to buy.
analyze— full ELF/MAP/linker analysis, all reportsvalidate— JSON-schema sanity check, ideal as a CI-pipeline wedgediff— baseline comparison + interactive visualization--strictexit codes for CI gating- Custom
[budgets]/[policies]config sections, including issue suppression - CSV export
- Plain-text + markdown memory-layout dumps (
--text/--markdown) — full-memory hierarchical region → section → top-symbols trees, designed for PR comments, build logs, anddiff-friendly snapshots - HTML report with full Memory Layout Explorer
- Multi-core / partitioned-SoC analysis
- All current and future toolchain parsers (GNU, IAR, Keil, Clang/LLD)
Need something MemScope doesn't ship?
Custom extensions and bespoke engineering — a parser for a toolchain or proprietary linker format that isn't supported, an adapter for an internal build format, an adaptation to your environment — are available by arrangement. That work is separate software under its own written agreement; it is not part of this distribution, is not published on PyPI, and nothing about it changes your right to keep using MemScope under the licence above.
Email dumitrescu.adrian121@gmail.com and describe what you need.
Documentation
Public documentation (CLI reference, CMake integration, CI tutorial, report interpretation guide, config schema, troubleshooting, privacy & GDPR posture, enterprise procurement Q&A) ships in docs/public/ and is also published at https://adrian-dumitrescu.github.io/memscope-docs/.
A condensed walkthrough is available via:
memscope --help # top-level commands
memscope analyze --help # per-command reference
Every subcommand has built-in --help documentation.
Privacy posture
- MemScope makes no network calls of any kind in normal operation. Your ELF / MAP files never leave your machine.
- There is no licensing backend, no activation, no licence check, and no sub-processors. Nothing about your use is reported to anyone.
- Opt-in telemetry is OFF by default; if enabled in
memscope.toml, the User specifies the recipient endpoint — the Licensor neither receives nor stores telemetry. - Full privacy policy:
docs/public/privacy.md.
Support
For bug reports, integration help, questions about the licence, and custom engineering enquiries:
When reporting an issue, please include the output of memscope diagnostics export — it bundles version, environment, and parser diagnostics into a single ZIP that's safe to attach.
License
Closed-source proprietary EULA. The binding text — with a Plain-English summary at the top — is in the LICENSE file shipped inside the wheel, and surfaced in the License section on the PyPI project page.
In short:
- MemScope (the PyPI distribution) is gratis for any use, including commercial use inside a company. No license key, no seat count, no time limit, no payment, no contact with the maintainer required, and no feature locked behind a purchase.
- Custom extensions and bespoke engineering are arranged separately (clause 3). Any such work is separate software under its own written agreement, is not published on PyPI, and is not licensed under this LICENSE. Enquiries: dumitrescu.adrian121@gmail.com.
- Not open source. No rights are granted under any OSI-approved or FSF-recognised license. Source code is not distributed; you receive the binary wheel published on PyPI.
Metadata
Release files for memscope-fw 0.2.0a14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| memscope_fw-0.2.0a14.tar.gz | 734.7 kB | Without provenance | Details for memscope_fw-0.2.0a14.tar.gz |
Built distributions (wheels)
Total release size: 37.4 MB
Release files / memscope_fw-0.2.0a14.tar.gz
| Download URL | memscope_fw-0.2.0a14.tar.gz |
|---|---|
| Size | 734.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36a4dd11acdaebbb9d82e728b5067d257b1f7bf2addb6556d5ca3f49b29c2c26
|
|
BLAKE2b-256 checksum How to use checksums |
b2d9760b9cf4f88f46d64b86f21bef110bd04d5bcc58f2a547e2028d9c583485
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp314-cp314-win_amd64.whl
| Download URL | memscope_fw-0.2.0a14-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
04626534254a8224f994ea60bcacd025c31ce9b67ebea7c9cb79d6854cb19b02
|
|
BLAKE2b-256 checksum How to use checksums |
f5f5b8dc3898fad6d25d967d7ab83d58b826b7f728e3817efbdcddda6785e471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | memscope_fw-0.2.0a14-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.14 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
e6fbd9cafe8f2fe1b94f6ab88f04870c272a55f74766a2f46a41b0d3c409380e
|
|
BLAKE2b-256 checksum How to use checksums |
2fa70a6f0775534b06983e97599635cce2390975664f4e24dbb1212ab2f98926
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | memscope_fw-0.2.0a14-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
15169c36583ef403022c927f229bb70bcf21ab9c8ed98cdb244b405a34f196f7
|
|
BLAKE2b-256 checksum How to use checksums |
94597f20fc75ab4c24593c37d2ef166edd8898d2634dcfc28c24d6d10b1ad0ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp313-cp313-win_amd64.whl
| Download URL | memscope_fw-0.2.0a14-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3207b8c9ab8a75c01900adff929a0dd8d72a28207a258ab961a68e956550bd90
|
|
BLAKE2b-256 checksum How to use checksums |
d274567ef2b423e1c9f7fa799daa5c572418072061fa3d201e295b9f141c8a65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | memscope_fw-0.2.0a14-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
2b629689bbd58e405435b7043772db7727715f8424f4e71d3b7f32f6eaf94cee
|
|
BLAKE2b-256 checksum How to use checksums |
efdfda1583445d653b82262dc89055667f2ceadc14ad69f92f235de42f49d669
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | memscope_fw-0.2.0a14-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b8ba86973cffec02454f6966a139ad4b18b964b623d2d7248ee0bf621adc9541
|
|
BLAKE2b-256 checksum How to use checksums |
8ea775677a8d6e52bc673b6f7263e4a4f9167e87232525f515c6cc30629dbd15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp312-cp312-win_amd64.whl
| Download URL | memscope_fw-0.2.0a14-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
28b3db12d2c1a6c7062fdce4fcf5d45f6279da95cd2eebf30ba39703cf2b7281
|
|
BLAKE2b-256 checksum How to use checksums |
e06fe95fac14d344ad3ecb4f2c34aeaa823e9ece49df91588df70ad68b097358
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | memscope_fw-0.2.0a14-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
30694e51cb8c863528fc0ab545b39b983c9bbc666999fa1c7a279e96db70b519
|
|
BLAKE2b-256 checksum How to use checksums |
da747a8854abbc053669733278dda25cecc0b3c90e421eb13528a45215cff1b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | memscope_fw-0.2.0a14-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
19f58d39c46f0dd7dc355c80d4334cdbd51313760c915e3cd92272b9ae0b6824
|
|
BLAKE2b-256 checksum How to use checksums |
d2db3846a4d87d91d551dbba83efe3a68ba3f51d896a96d621e4b92e0c5b2336
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp311-cp311-win_amd64.whl
| Download URL | memscope_fw-0.2.0a14-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9d1b863a435c1059b3fde80c16834280a760aed624eb8ce9a3dc65c1b544562e
|
|
BLAKE2b-256 checksum How to use checksums |
332254ee8ccafa00d154df36f22ac95c978147871a82b8c234140a4ae907f7a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | memscope_fw-0.2.0a14-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
4d476e0be688f913c704577202502fcfa6d5d84f2df5b81777a68cbefbc81ff8
|
|
BLAKE2b-256 checksum How to use checksums |
c128b3c946caa289a72ff34120d5f1f2ccd890c674618a580bb8c0bf8d6be004
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | memscope_fw-0.2.0a14-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f47d9f8c4a0ef7b2dd3a3347b44aa0aa71a1d21e0593cd7db21691ab68872c1f
|
|
BLAKE2b-256 checksum How to use checksums |
4dd46e54dab958631b9eea959eeb5407e3e6683325c291c42bdfc9361862c95a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp310-cp310-win_amd64.whl
| Download URL | memscope_fw-0.2.0a14-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
faceb62f29e1ac586d011f1ffa2867f2ac393fe4f5ef5582b7725364b58656bb
|
|
BLAKE2b-256 checksum How to use checksums |
120a7c5625b770ccf434909574d8bd92a8f341bda2f684fe21823230e0d0eba3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | memscope_fw-0.2.0a14-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
ad311d67f3c0613b8c0f6a8fb174f4f3aa7f0ef7b826c12c9daa4e0baf851c96
|
|
BLAKE2b-256 checksum How to use checksums |
8e04242f7dce4dc6f853071ffa3a0126d12fb4a7c8eea36050ef97e2c826c670
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / memscope_fw-0.2.0a14-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | memscope_fw-0.2.0a14-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
29ab3df10f120e88405d9123575f9956ad36bbff18ad30f59b2a67e11b79d927
|
|
BLAKE2b-256 checksum How to use checksums |
63660813da699ffdcb0bbc580b0c37b832364d951a6c2f5c1cb88dc83cd23c36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for memscope-fw 0.2.0a14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.