5 ms·
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.
by seanp2k2 5y ago
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.
- ReactiveJelly 5y agoIs 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.
- mycoliza 5y agoGo has pprof (https://github.com/google/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.
- Groxx 5y agopprof + 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.
- pse_pan2233 5y agoAlready mentioned: https://pkg.go.dev/net/http/pprof 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-goroutines-during-debugging/ https://blog.jetbrains.com/go/2020/03/03/how-to-find-gorouti...