bcicen / grmon

Command line monitoring for goroutines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why the github.com/bcicen/grmon import?

erikdubbelboer opened this issue · comments

Why can't grmon not just parse the output of /debug/pprof/goroutine?debug=1?

This would make things a lot easier as the program you want to monitor doesn't have to add another dependency.

If any supplemental data (not already in pprof profile) is used going forward, the import would be still be needed; however, yes, in its current state parsing can just as well be moved into the client.

I will likely make this change in the next iteration. Thanks for the feedback!

I was thinking of opening an issue to say that grmon doesn't work for apps that don't use the http.DefaultServeMux. However, switching to /debug/pprof ought to solve that as well.

grmon now reads directly from /debug/pprof of the target by default.

An (optional) agent is still included as well to allow for extended profiling data in the future.