Benchmark paint routines? C++ nodes?
-
Would there be a way to benchmark paintRoutine/LAF within Hise or in XCode?
AFAIK the console benchmark is reporting the timing for the painting call, not the duration of the procedure itself (which is part CPU and part GPU, right?)
I'd also like to benchmark my C++ nodes. I have seen something about the
chrono
library, but is there a tool or a procedure already in XCode? -
@ustk Perfetto is for this kind of thing I think
-
@d-healey Oh yes I tried it once but didn't dig far enough. I'll try that
-
@ustk Perfetto is a beast and requires you to sprinkle code snippets across your code to allow a good trace.
If you enable debug symbols (!= debug mode) in your release build then you can also use the Time Profiler in the Xcode Instruments toolkit for finding the CPU hotspots.