News for hackers. Stuff that matters.
Re:Tokio Console by seanp2k2 on Friday December 17, 2021 @03:47PM (#29598133)
Is there something like this for Golang? I've inherited a golang project at work and it's really not fun to debug compared to Python.
Re:Tokio Console by mycoliza on Friday December 17, 2021 @04:58PM (#29598858)
Go has pprof (https://github.com/google/pprof), which I've heard good things about --- and, the pprof data model was one of the influences I looked at when designing the Tokio console's wire format. But, I'm not sure if pprof has any similar UIs to the one we've implemented for the Tokio console; and I haven't actually used it all that much.
Re:Tokio Console by Groxx on Friday December 17, 2021 @06:39PM (#29599664)
pprof + runtime tracing spans is probably the best equivalent in Go-land, yeah. I have yet to see any library actually use those, but that may just be me being unlucky.
Re:Tokio Console by pse_pan2233 on Saturday December 18, 2021 @12:00AM (#29601809)
Already mentioned: https://pkg.go.dev/net/http/pprof

I've just seen that Goland (the IDE) has some nice integration:

https://blog.jetbrains.com/go/2020/03/03/how-to-find-gorouti...

Re:Tokio Console by ReactiveJelly on Friday December 17, 2021 @03:58PM (#29598265)
Is there even something like this for Python?

I've used Tracy for C++, which does similar tracing on OS-level threads, but I don't know much about Python.