Debugging

How to profile Python applications inside a docker container

In the following post I’ll explain how you can profile a running Python program in a Docker container using py-spy. py-spy is able to generate flame graphs, and it can give us profiling capabilities in order to debug our Python programs. Now, when your Python code is running in a Docker container it can be a bit more difficult to profile your code, and this post sets out to show you how this can be done with these tools. ...Read more

#python #docker #profiling #debugging

How to profile Go applications inside a docker container

This article has been updated and you can view its updated version here In this post I’ll give a quick overview of several methods you can use for profiling/debugging Go applications that are running in a docker container. To get a more in-depth overview of the several methods, I’ve added the source links you can reference. pprof gcvis gotorch general sources Defer Panic - understanding golang memory usage golang.org - profiling go programs Jimmy-Xu - pprof in docker daemon ...Read more

#golang #docker #profiling #debugging