melatonin_perfetto
melatonin_perfetto copied to clipboard
Blank traces when allocated memory is used up
If you have perfetto enabled and run the program too long, it eats through all of peretto's allocated memory.
There's no warning, just the .pftrace
file ends up not loading (blank screen) when you got to import it at the trace viewer at https://perfetto.dev
I haven't looked into perfetto proper to see if there's a way to change this behavior.
Perhaps there's a supported way that we could cleanly end the trace when the memory is used.
Or maybe there's API that we could periodically query to at least warn the user via DBG or something that the trace is corrupted.
Or maybe this is a bug with perfetto?