profiling memory?
#19149
Replies: 1 comment
-
For leaks, see this article: https://web.dev/webassembly-memory-debugging/ There is a simple memory profiler, There is also a tracing API you can build profiling from: https://emscripten.org/docs/api_reference/trace.h.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
I have a (.net webassembly) app that is rather huge. When ran for 1h+, it usually runs out of memory.
So obviously, there are some leaks. But since we can't really do memory profiling (that arraybuffer is just opaque), I'm hitting a dead end.
Right now I'm trying to figure out scenarios that will trigger memory increase, but so far, we've solved most of them, and we're now left with the "slow death of a thousand cuts" leaks -- those that do increase memory, but very very slowly. And inconsistently.
As far as I can see, there's nothing out there to help with this.
What do you guys suggest I do?
Is there a simple way to somehow log all "allocation"s and "deallocation"s and then have a way to trigger a way two snapshots, and compute differences?
Beta Was this translation helpful? Give feedback.
All reactions