Skip to content

0xDVC/ptree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ptree

A simple process tree tool that shows memory attribution for processes and their children.

how to run

go run main.go

or you could:

go build
./ptree

sample output

PID    RSS(KB)  TOTAL(KB)  CMD
1      128      33752      init
├── 276    140      140        syslogd
├── 304    152      152        crond
├── 403    116      116        udhcpc
├── 467    124      124        getty
└── 59     10040    33092      orbstack-agent:
    └── 3944   1144     23052      sh
        └── 5322   19416    21908      go
            └── 5430   2492     2492       main

requirements

  • linux (uses /proc filesystem)
  • go 1.21+

Testing

tested on alpine 3.22 (arm64) via orbstack vm. should work on any linux distro.

About

simple process tree tool that shows memory attribution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages