I'm looking for a fairly simple method to count clock cycles that a particular block of code takes to execute on a TMS570. I'm debugging through JTAG on the target (with a Spectrum Digital XDS510 emulator), however, the profiling options I've seen for CCS v4 don't seem to be enabled (unless I'm doing something incorrectly). Do I need to be using a simulator for these options to be enabled? I couldn't find a "cycle accurate simulator" for the 570 either.
Any other suggestions for easily doing this? I was hoping to avoid having to setup some sort of timer in code that increments every clock cycle.