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.1.tar.gz (181.9 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.1-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: memtab_visualizers-1.0.1.tar.gz
  • Upload date:
  • Size: 181.9 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.1.tar.gz
Algorithm Hash digest
SHA256 b1ed8eaa4f3aff27707b6ede44042a85cd492d73f4259e718360e513b3276fc5
MD5 bee6978c220b6ef62efd88cab791c6fc
BLAKE2b-256 d97afd1616b7c245dc9b4f8e6991b7ad93ed2598b233d0880f381640e9aedcc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for memtab_visualizers-1.0.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for memtab_visualizers-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94edf8336c6f2f9e7d82a4486c3cc7d73be76bf6b8003ed0c35ee60e25644313
MD5 94a3c3ab87c0078af4b67a1e91d84daf
BLAKE2b-256 12266e746d6e42f5064e1cd054cfe9c4cd195851099fcac39d2c616b3951b240

See more details on using hashes here.

Provenance

The following attestation bundles were made for memtab_visualizers-1.0.1-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