melatonin_perfetto icon indicating copy to clipboard operation
melatonin_perfetto copied to clipboard

Can't TRACE_DSP/COMPONENT() without arguments in lambdas

Open sudara opened this issue 2 years ago • 1 comments

Tried to include the module in a JUCE header and use the TRACE_DSP macro and get the following error:

_deps/perfetto-src/sdk/perfetto.h:18425:13: error: no matching function for call to 'WriteTrackEventArgs'

TRACE_EVENT with a category specified works fine, so need to look into the macro to see what the issue might be.

sudara avatar Jul 15 '23 11:07 sudara

Tried to work around this today and failed.

Workaround is to use TRACE_DSP_BEGIN with an explicit name.

sudara avatar Aug 16 '24 16:08 sudara