r/Python • u/AutoModerator • Oct 04 '26
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
23
Upvotes
r/Python • u/AutoModerator • Oct 04 '26
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
View all comments
1
u/Jay123lol 28d ago
I built DrainTracer, a Python CLI/TUI for watching resource growth in Windows process trees. It's MIT licensed, and I'd love some help with the open issues.
What My Project Does
Launch a program or attach to a PID, then follow it and its child processes in a live terminal dashboard. It tracks CPU, private memory/RSS, handles, threads and I/O. Growth heuristics flag sustained private-memory, handle and thread trends. You can export JSON and offline HTML reports, compare before/after runs, or run headless checks.
Target Audience
Windows developers investigating a worker that keeps growing, or checking the same workload before and after a fix. Requires Windows 10/11 and Python 3.10+. The target needs no source changes.
Comparison
The focus is recording process-tree trends and keeping evidence between runs. It measures process counters, not allocation sites. A growth signal is a lead to investigate, not proof of a leak, and short runs can be inconclusive.
Install:
python -m pip install draintracerRun
draintraceror attach withdraintracer --pid <PID>. Quitting an attached session leaves the target running. Quitting a launched session stops its tracked tree.Source and demo: https://github.com/JunaidAhamed-7777/DrainTracer
There are currently 66 open issues across docs, UI/reporting, testing and bug fixes. If you'd like to contribute, have a look through the issue descriptions and existing discussion: https://github.com/JunaidAhamed-7777/DrainTracer/issues
Feedback on the reports and growth signals would be useful too.