diff options
author | 2010-08-21 22:25:58 +0000 | |
---|---|---|
committer | 2010-08-21 22:25:58 +0000 | |
commit | a2f7346d9099da6582b42bc912a2436d8e9c6f44 (patch) | |
tree | a4aec5d15135079bcad4484386e389a7080da494 /src/emu/cpu/powerpc | |
parent | e8d644d285d743a93b2442d4c2f9b568a38a4715 (diff) |
I had originally wanted to convert the profiler to use scopes (e.g.,
create a stack class that started the profiler in the constructor
and stopped it in the destructor). Sadly, doing that causes gcc to
call out to hook up the unwind chain, and this tanks performance
quite badly, even when the profiler is off.
Since I had already class-ified profiler.c, I decided to keep the old
way of doing things but wrap it in the newer classes. So at least it
wasn't a complete waste of my time.
Search & replace:
profiler_mark_start -> g_profiler.start
profiler_mark_end -> g_profiler.end
Diffstat (limited to 'src/emu/cpu/powerpc')
-rw-r--r-- | src/emu/cpu/powerpc/ppcdrc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/cpu/powerpc/ppcdrc.c b/src/emu/cpu/powerpc/ppcdrc.c index 4d46d87665c..dc5abc5e902 100644 --- a/src/emu/cpu/powerpc/ppcdrc.c +++ b/src/emu/cpu/powerpc/ppcdrc.c @@ -947,7 +947,7 @@ static void code_compile_block(powerpc_state *ppc, UINT8 mode, offs_t pc) drcuml_block *block; jmp_buf errorbuf; - profiler_mark_start(PROFILER_DRC_COMPILE); + g_profiler.start(PROFILER_DRC_COMPILE); /* get a description of this sequence */ desclist = drcfe_describe_code(ppc->impstate->drcfe, pc); @@ -1030,7 +1030,7 @@ static void code_compile_block(powerpc_state *ppc, UINT8 mode, offs_t pc) /* end the sequence */ drcuml_block_end(block); - profiler_mark_end(); + g_profiler.stop(); } |