What kinds of projects did you find Memray useful for?
I work on a FastAPI app with a ton of API endpoints and the occasional memory leak. So far I’ve had a hard time using Memray (or any other profiler) to figure out which endpoints in particular might be causing the leak.
Would love to hear from anyone who’s been in a similar spot before.
I have a lot of praise for using Memray as part of working out some memory kinks in a codebase I’m working on. It allowed me to quickly iterate on some hunches and then enshrine the resulting memory savings in tests via pytest-memray.
The main difference is Scalene is a sampling profiler, and Memray appears to be an instrumentation profiler. Instrumentation profilers usually give more precise information at the cost of a slowdown.
From Memray:
> Traces every function call so it can accurately represent the call stack, unlike sampling profilers.
bloomberg! they seem to be sponsoring a bunch of good work for OSS. Thank you!! I also happen to meet some of their engineers at Gophercon this year. Wouldn't have thought they do so much! Thanks!
Ive used Memray and it works great locally. But when I deployed my application over long running processes (i.e. in production) because I want to see memory usage over a long period of time, the profiler outputs get really large, like hundreds of gbs. They cause disk outages and also take forever to download and visualize with the flamegraphs. What do people use to understand memory usage of long running workloads in production?
I don't use it often, but when I need to I'm glad it's a part of my toolbox!