Skip to main content

Utility to be paired with memtab to visualize the output

Project description

Welcome!


Documentation: https://etn-corp.github.io/memtab-visualizers/

Source Code: https://github.com/etn-corp/memtab-visualizers


memtab-visualizers is a Python-based project that provides both a command line interface (CLI) and a Python library. ## Features

  • Command Line Interface (CLI)

  • Python library

Installation

To install memtab-visualizers, you can use pip:

pip install git+https://github.com/etn-corp/memtab-visualizers

Usage

Command Line Interface

To get these new reports, add the appropriate –report argument to memtab after installing this package:

memtab --elf xyz.elf --config xyz.yml --report [treemap|categorymemmap|excel|memmap|markdown|memoryprofiler|summary]

Python Library

To use the Python library:

import memtab_visualizers

Developing

This project is managed using uv. For more information, refer to Astral’s page on uv <https://astral.sh/uv/>.

Common Commands

  • uv sync: Sync your development environment with the project dependencies.

  • uv run <command>: Run a command within the project’s virtual environment.

  • uv build: generate a pip installable wheel or sdist file in the dist/ directory.

Running Tests

To run tests, use uv with coverage:

uv run coverage run -m pytest

Staying synced up to memtab

If the memtab package has updated, run the following to update uv:

uv sync --reinstall-package memtab --upgrade

Pre-commit Hooks

We use pre-commit to ensure code quality and consistency. After cloning the project, install the pre-commit hooks by running:

pre-commit install

For more information on pre-commit, visit the pre-commit website <https://pre-commit.com/>.

We also have a GitHub Action that runs pre-commit checks on every push and pull request, so you can rely on that if you prefer not to install pre-commit locally.

Contribution Guidelines

We welcome contributions! Please follow these guidelines:

  1. Fork the repository.

  2. Create a new branch (git checkout -b feature-branch).

  3. Make your changes.

  4. Commit your changes (git commit -am ‘Add new feature’).

  5. Push to the branch (git push origin feature-branch).

  6. Create a new Pull Request.

Reporting Issues

If you encounter any issues, please report them on the GitHub Issues page.

Generating Documentation

To generate documentation, use Sphinx:

cd docs/
sphinx-apidoc -o . ../src/memtab-visualizers/

Now hand-edit the generated files to fix the paths (adding memtab-visualizers.), and then run:

make html

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memtab_visualizers-1.0.0.tar.gz (180.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

memtab_visualizers-1.0.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file memtab_visualizers-1.0.0.tar.gz.

File metadata

  • Download URL: memtab_visualizers-1.0.0.tar.gz
  • Upload date:
  • Size: 180.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for memtab_visualizers-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cd54504daad2043075015713a1c10bfc994f5947c0b8d4c0a0d9a70ba87ebdb7
MD5 e70931cc8dbf8138cfc89e5c40495b0e
BLAKE2b-256 c8512a5c19569a78ac525fd5fd0ad010cc3d39eca1ba6767332560e811be1727

See more details on using hashes here.

Provenance

The following attestation bundles were made for memtab_visualizers-1.0.0.tar.gz:

Publisher: publish.yml on etn-corp/memtab-visualizers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file memtab_visualizers-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for memtab_visualizers-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8443d51ec87c37a27064090fa943527dd5280c79d06a9974085321b900c1b8e9
MD5 16464f7d95c20e4b1809bf102a833e30
BLAKE2b-256 9f9b091a4a09eb8978d9da6deca4b0d355f44c2c3a2bcb6d6b13cb186716a297

See more details on using hashes here.

Provenance

The following attestation bundles were made for memtab_visualizers-1.0.0-py3-none-any.whl:

Publisher: publish.yml on etn-corp/memtab-visualizers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page