Add performance counters from RetroArch. Build with -DPERF_TEST defined.
Instrument with
RARCH_PERFORMANCE_INIT, RARCH_PERFORMANCE_START and RARCH_PERFORMANCE_STOP