[hatari-devel] Profiling support to Hatari debugger
Eero Tamminen
eerot at users.berlios.de
Sun May 9 19:16:21 CEST 2010
Hi,
Laurent, how would I get how many cycles are spent by current DSP
instruction?
Like this:
-----------
+/**
+ * Get current DSP instruction cycles (for profiling)
+ */
+Uint16 DSP_GetInstrCycles(void)
+{
+#if ENABLE_DSP_EMU
+ if (bDspEnabled)
+ return dsp_core.instr_cycle;
+ else
+#endif
+ return 0;
+}
-----------
?
- Eero
More information about the hatari-devel
mailing list