melatonin_perfetto
melatonin_perfetto copied to clipboard
Alert when perfetto is enabled
It's easy to forgot to leave perfetto "on".
Since we often want to trace in release, this can be bad.
In the readme i suggest adding a test to CI to confirm it wasn't left on.
However, perhaps we should at least be alerting via DBG or that perfetto is enabled and how much memory was allocated?
Doesn't JUCE provide a macro to print a custom compiler warning or message? We could use that to print whether or not Perfetto is enabled.
Or do you mean to print this information during CMake configure-time?
I was thinking run time. However, since most profiling is done in release I guess that rules out DBG's usefulness... Configure time will probably get lost... compile time works!
I added something in my UI, just because it's easy to forget...
That's a good idea! The module could also provide something like a PerfettoStatusLabel widget