mirror of
https://github.com/holub/mame
synced 2025-05-24 23:05:32 +03:00
Whoops, forgot to fix this part.
This commit is contained in:
parent
a2f7346d90
commit
fcbab89545
@ -208,7 +208,7 @@ const char *real_profiler_state::text(running_machine &machine, astring &string)
|
|||||||
{ PROFILER_IDLE, "Idle" }
|
{ PROFILER_IDLE, "Idle" }
|
||||||
};
|
};
|
||||||
|
|
||||||
profiler_scope profile(PROFILER_PROFILER);
|
g_profiler.start(PROFILER_PROFILER);
|
||||||
|
|
||||||
// compute the total time for all bits, not including profiler or idle
|
// compute the total time for all bits, not including profiler or idle
|
||||||
UINT64 computed = 0;
|
UINT64 computed = 0;
|
||||||
@ -227,7 +227,10 @@ const char *real_profiler_state::text(running_machine &machine, astring &string)
|
|||||||
UINT64 total = computed;
|
UINT64 total = computed;
|
||||||
string.reset();
|
string.reset();
|
||||||
if (total == 0 || normalize == 0)
|
if (total == 0 || normalize == 0)
|
||||||
|
{
|
||||||
|
g_profiler.stop();
|
||||||
return string;
|
return string;
|
||||||
|
}
|
||||||
|
|
||||||
// loop over all types and generate the string
|
// loop over all types and generate the string
|
||||||
for (curtype = PROFILER_DEVICE_FIRST; curtype < PROFILER_TOTAL; curtype++)
|
for (curtype = PROFILER_DEVICE_FIRST; curtype < PROFILER_TOTAL; curtype++)
|
||||||
@ -279,5 +282,7 @@ const char *real_profiler_state::text(running_machine &machine, astring &string)
|
|||||||
// we are ready once we have wrapped around
|
// we are ready once we have wrapped around
|
||||||
if (m_dataindex == 0)
|
if (m_dataindex == 0)
|
||||||
m_dataready = true;
|
m_dataready = true;
|
||||||
|
|
||||||
|
g_profiler.stop();
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user