4 ms·
looks awesome. how easy is it to use this to profile a webapp written in a framework like django? Open-metrics? just curious
by tr33house 6y ago
looks awesome. how easy is it to use this to profile a webapp written in a framework like django? Open-metrics? just curious
- p403n1x87 6y agoas easy as profiling with Austin itself. Just pass the pid of the web server sudo austin-tui -Cp <webserverpid> See https://github.com/P403n1x87/austin#examples https://github.com/P403n1x87/austin#examples for more details. To avoid using sudo on Linux you can do sudo setcap cap_sys_ptrace+ep `which austin` and then simply austin-tui -Cp <webserverpid>
- galacticdessert 6y agoPyinstrument might be easier to profile web requests: https://github.com/joerick/pyinstrument#profile-a-web-request-in-django https://github.com/joerick/pyinstrument#profile-a-web-reques...
- p403n1x87 6y agoOne benefit of Austin-based tools is that they don't require any instrumentation/extra configuration. The low overhead means that you can just attach to an application that is running in production.