zosmac / gotree

GO language based process TREE listing.
0 stars 0 forks source link

pass in a PID ? #1

Open gedw99 opened 1 year ago

gedw99 commented 1 year ago

Is there a way to give it a PID on the cli ?

zosmac commented 1 year ago

This is a good suggestion. I can add a -pids pid[,pid...] parameter. Currently, the gomon command uses Graphviz dot to render a process graph as SVG for display in a browser (e.g. http://localhost:1234/gomon), and selecting a process node will tunnel to that one. (e.g http://localhost:1234/gomon?pid=567)

zosmac commented 1 year ago

I have pushed an update to add a -pids flag to gotree. It takes a comma separated list of pids.