UNKNOWN
Project description
Utility for inspecting python stack of running process (x64 linux only)
Usage:
sudo pytb [pid]
will show you stacktrace of each python thread.
If you want to also see greenlet stacktraces, use
sudo pytb -g [pid]
this will also show you greenlets stacktraces. NOTE: in order to find all greenlets pytb looks for all gc tracked objects, so this may take a while if you have lots of objects.
Supports viewing python2 and python3 tracebacks (it will try to guess, whether it’s 2 or 3, however you can help it by specifying -2 or -3 option)
The utility works by reading /proc/<pid>/mem (this is why sudo is needed). It uses nm and objdump for finding inner python structures in memory.
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
File details
Details for the file pytb-0.0.4.tar.gz
.
File metadata
- Download URL: pytb-0.0.4.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c43bb9dffe3c6b961623b117a86e70436c9366c6f04c7b0e91319dca8fe037ad
|
|
MD5 |
561dc659eb8cbf57b3fb165f49437975
|
|
BLAKE2b-256 |
bf2debd7b944cc0f389e0ba64ee98d8c9919d8a4d1d5eeb835aa2c1c88b28158
|