Analyses C/C++ build output for code size, static variables, and stack usage.
Project description
puncover
Analyzes C/C++ binaries for code size, static variables and stack usages. It creates a report with disassembler and call-stack analysis per directory, file, or function.
Installation and Usage
Install with pip:
pip install puncover
Run it by passing the binary to analyze:
puncover --elf_file project.elf
...
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Open the link in your browser to view the analysis.
Running Tests Locally
Setup
To run the tests locally, you need to install the development dependencies:
-
install pyenv: https://github.com/pyenv/pyenv
curl https://pyenv.run | bash
-
install all the python environments, using this bashism (this can take a few minutes):
for _py in $(<.python-version ); do pyenv install ${_py}; done
-
install the development dependencies:
pip install -r requirements-dev.txt
Running Tests
Then you can run the tests with:
tox
or, to target only the current python
on $PATH
:
tox -e py
Publishing Release
Release Script
See release.sh
for a script that automates the above steps. This example will
work with the PyPi tokens (now required):
PUNCOVER_VERSION=0.3.5 TWINE_PASSWORD="<pypi token>" TWINE_USERNAME=__token__ ./release.sh
Manual Steps
Only for reference, the release script should take care of all of this.
Click to expand
-
Update the version in
puncover/__version__.py
. -
Commit the version update:
git add . && git commit -m "Bump version to x.y.z"
-
Create an annotated tag:
git tag -a {-m=,}x.y.z
-
Push the commit and tag:
git push && git push --tags
-
Either wait for the GitHub Action to complete and download the release artifact for uploading: https://github.com/HBehrens/puncover/actions OR Build the package locally:
python setup.py sdist bdist_wheel
-
Upload the package to PyPI:
twine upload dist/*
-
Create GitHub releases:
gh release create --generate-notes x.y.z
- attach the artifacts to the release too:
gh release upload x.y.z dist/*
Contributing
Contributions are welcome! Please open an issue or pull request on GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file puncover-0.4.2.tar.gz
.
File metadata
- Download URL: puncover-0.4.2.tar.gz
- Upload date:
- Size: 567.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc1430871fb926da5349e8e8ea7ba856def5b1af55907d3f3ac83eaa4b3babb3 |
|
MD5 | 8db74d69b95b8ab315e984a14274640f |
|
BLAKE2b-256 | d6457409c6f9d9a6544c855d97f1037b793fb4ddc65bc9e60e857d46f62ecd3b |
File details
Details for the file puncover-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: puncover-0.4.2-py3-none-any.whl
- Upload date:
- Size: 171.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d57567b18110ef866b61b671c7c1b0eed2e046e1b4aa9b813c3869c451677819 |
|
MD5 | 3a3a7984049be18ca264a697a029a6a9 |
|
BLAKE2b-256 | 2d9dd39d505db35c3de70517417394a78e249bd998cfb7a4197b15da93b832c2 |