I have a long running process and I'm trying to profile a specific task. I'd like to be able to start Instruments collecting performance data when the task starts, then stop it again as soon as it is finished.
Googling, I found the DTPerformanceSession framework, which looked like exactly what I need, but it appears to be obsolete (added in Instruments 4 and no longer documented anywhere).
Is there something equivelent for Instruments 9?