Visual C++ profiling, urgh. One first sees there are menu options for profile guided optimization in the 2005 Express, Standard, and Professional versions; then one discovers they don’t necessarily work. One needs the $500 version to enable Profile Guided Optimization, and the $2500 version for full profiling.
I found a simple free profiler called “Very Sleepy” for Windows here:
http://www.codersnotes.com/sleepy
It’s now thread aware, and it helped me get the typical CPU utilization down from 30% to 4% in short order!
According to task amanger I’m still getting occasional peaks to 18%, and peaks are very difficult to isolate in a profiler, because they average over sample ranges of course. I don’t have any reason to believe the expensive commercial Visual C++ profilters would be any better at finding peaks. Is there an easy way to trigger a breakpoint in Juce if the CPU goes over a particular level?