understand memory leak from the flamegraph #485
Unanswered
JackieJin1025
asked this question in
Q&A
Replies: 1 comment 2 replies
-
How are you generating the flame graph? Leaks are normally detected using the https://bloomberg.github.io/memray/flamegraph.html#memory-leaks-view If you want to just profile a region of your code you can use the API: https://bloomberg.github.io/memray/api.html Alternatively you can use the temporal flame graphs with or without https://bloomberg.github.io/memray/flamegraph.html#temporal-flame-graphs |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I ran a script with memray, in the hope of finding the place of memory leak. Below is the snapshot of the memory usage from the flamegraph.
There is a loop in the script that corresponds to the several peaks in the snapshot. As you can see, the memory slowly increases. Below is the code that executes the loop. I believe the line 72 simulation(....) should have a similar memory usage in each iteration.The flamegraph does not seem to show the slow increase of memory over the loop. Is there a better way to find the memory leak?
Beta Was this translation helpful? Give feedback.
All reactions