sudara / melatonin_perfetto

Use google's perfetto performance tracing in JUCE plugins and apps
45 stars 8 forks source link

CMake Option for setting allocated buffer size #3

Closed sudara closed 1 year ago

sudara commented 2 years ago

Not 100% if this should be CMake or just API

However, we set the buffer size to 8MB right now. I believe that allocates on boot and then is used to populate with events. If you boot the app and events overflow the 8MB, from what I can tell, the trace just doesn't work over on https://perfetto.dev ?

I have mine set to 80MB right now, but a larger allocation like that results in longer boot times.

benthevining commented 1 year ago

I would probably recommend putting this option in the C++ API. It would be possible to allow the user to override the default value by setting a CMake variable, but it seems to me that if someone is willing to change their CMake code to customize this, they wouldn't mind changing their C++ code.

sudara commented 1 year ago

Closed by 9557fc6760a4dcc7e53058685cf29bebc9dfb073