melatonin_perfetto icon indicating copy to clipboard operation
melatonin_perfetto copied to clipboard

Alert when perfetto is enabled

Open sudara opened this issue 2 years ago • 3 comments

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?

sudara avatar Dec 12 '22 13:12 sudara

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?

benthevining avatar Dec 12 '22 19:12 benthevining

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...

AudioPluginHost - 2022-12-12 16@2x

sudara avatar Dec 12 '22 19:12 sudara

That's a good idea! The module could also provide something like a PerfettoStatusLabel widget

benthevining avatar Dec 12 '22 20:12 benthevining