Added a new PerfMarker class: used to instrument emulation sub-systems and log timings (#788)

To enable this uncomment the #define LOG_PERF_TIMINGS in AppleWin.h.
This commit is contained in:
tomcw
2020-05-23 16:23:06 +01:00
parent b1ab3f9794
commit 13a4043118
6 changed files with 102 additions and 1 deletions
+5
View File
@@ -2091,6 +2091,11 @@ static void VideoUpdateCycles( int cyclesLeftToUpdate )
//===========================================================================
void NTSC_VideoUpdateCycles( UINT cycles6502 )
{
#ifdef LOG_PERF_TIMINGS
extern UINT64 g_timeVideo;
PerfMarker perfMarker(g_timeVideo);
#endif
_ASSERT(cycles6502 && cycles6502 < g_videoScanner6502Cycles); // Use NTSC_VideoRedrawWholeScreen() instead
if (g_bDelayVideoMode)