summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-10-01 16:58:26 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-10-01 16:58:26 +0000
commit61eb81209630e89f8c9b90141c4a5e6ee95fda0a (patch)
treeff33666dccfee892403e125a3670f6ae7cb69f61
parenteb943f05d74038605e3f0a702a2f0db85419929b (diff)
> From: Christophe Jaillet [mailto:christophe.jaillet@wanadoo.fr]
> Sent: Sunday, September 27, 2009 5:45 AM > To: submit@mamedev.org > Subject: Increase the number of PROFILER_USERx slots when profiling > > Hi, > > sometimes, when I profile a game in order to see what is the most time > consuming part of its emulation, the 4 PROFILER_USERx are just not > enough. > The attached patch increases this number to 8 in order to give more > flexibility. > > It also removes the now unused and obsolete PROFILER_END constant in > order > to be sure that 'profiler_mark_start' will never be called with it > > Hope this help. > Best regards, > > CJ
-rw-r--r--src/emu/profiler.c4
-rw-r--r--src/emu/profiler.h5
2 files changed, 8 insertions, 1 deletions
diff --git a/src/emu/profiler.c b/src/emu/profiler.c
index 7ade648e243..a4f6fb9c45c 100644
--- a/src/emu/profiler.c
+++ b/src/emu/profiler.c
@@ -134,6 +134,10 @@ astring *_profiler_get_text(running_machine *machine, astring *string)
{ PROFILER_USER2, "User 2" },
{ PROFILER_USER3, "User 3" },
{ PROFILER_USER4, "User 4" },
+ { PROFILER_USER5, "User 5" },
+ { PROFILER_USER6, "User 6" },
+ { PROFILER_USER7, "User 7" },
+ { PROFILER_USER8, "User 8" },
{ PROFILER_PROFILER, "Profiler" },
{ PROFILER_IDLE, "Idle" }
};
diff --git a/src/emu/profiler.h b/src/emu/profiler.h
index d928d7bb107..439216c4eff 100644
--- a/src/emu/profiler.h
+++ b/src/emu/profiler.h
@@ -34,7 +34,6 @@
/* profiling */
enum
{
- PROFILER_END = -1,
PROFILER_CPU_FIRST = 0,
PROFILER_CPU_MAX = PROFILER_CPU_FIRST + 32,
PROFILER_MEMREAD,
@@ -59,6 +58,10 @@ enum
PROFILER_USER2,
PROFILER_USER3,
PROFILER_USER4,
+ PROFILER_USER5,
+ PROFILER_USER6,
+ PROFILER_USER7,
+ PROFILER_USER8,
PROFILER_PROFILER,
PROFILER_IDLE,