https://github.com/msoedov/docker-pyflame
Docker container for pyflame (a ptracing profiler for python) based on official python images
https://github.com/msoedov/docker-pyflame
docker pyflame python
Last synced: about 2 months ago
JSON representation
Docker container for pyflame (a ptracing profiler for python) based on official python images
- Host: GitHub
- URL: https://github.com/msoedov/docker-pyflame
- Owner: msoedov
- Created: 2017-01-24T23:53:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-05T03:55:53.000Z (almost 8 years ago)
- Last Synced: 2025-03-04T07:15:17.624Z (over 1 year ago)
- Topics: docker, pyflame, python
- Language: Perl
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Docker pyflame
[](https://microbadger.com/images/msoedov/pyflame:2.7 "Get your own image badge on microbadger.com")
[](https://hub.docker.com/r/msoedov/pyflame/)
This is a [Docker](https://www.docker.com/) image for [Pyflame](https://github.com/uber/pyflame). This image runs with a base of [Python:2.7/3.5/3.6](https://hub.docker.com/_/python/) making it extremely convinient for development environment.
This image can also be found on [Docker Hub](https://hub.docker.com/r/msoedov/pyflame/).
## Usage
```shell
docker run -it --cap-add SYS_PTRACE -v "$(pwd):/pyflame" msoedov/pyflame:2.7 bash
pyflame | flamegraph.pl > myprofile.svg
```
Note: `--cap-add SYS_PTRACE` is required and denied by default within Docker images
This is the bare minimum needed to use this image. Although further customization is made easier with a docker-compose file.