MIPS measurement

hi,

I want to measure the MIPS(cycles) of a codec for the instructions,
running with the cortexA8 processor, so can we explain me the
procedure for this and example code for this one.

Thanks,
Ajay.