[Project64] Cleanup ProfilingClass.cpp

This commit is contained in:
zilmar 2015-12-24 06:51:37 +11:00
parent 50df137466
commit cf2d34fed3
2 changed files with 140 additions and 140 deletions

View File

@ -69,7 +69,8 @@ SPECIAL_TIMERS CProfiling::StopTimer() {
PROFILE_ENRTY Entry = m_Entries.find(m_CurrentTimerAddr); PROFILE_ENRTY Entry = m_Entries.find(m_CurrentTimerAddr);
if (Entry != m_Entries.end()) { if (Entry != m_Entries.end()) {
Entry->second += TimeTaken; Entry->second += TimeTaken;
} else { }
else {
m_Entries.insert(PROFILE_ENRTIES::value_type(m_CurrentTimerAddr, TimeTaken)); m_Entries.insert(PROFILE_ENRTIES::value_type(m_CurrentTimerAddr, TimeTaken));
} }
@ -103,7 +104,6 @@ void CProfiling::ShowCPU_Usage() {
Entry = m_Entries.find(Timer_Idel); Entry = m_Entries.find(Timer_Idel);
if (Entry != m_Entries.end()) { Idle = Entry->second; } if (Entry != m_Entries.end()) { Idle = Entry->second; }
TotalTime = CPU + Alist + Dlist + Idle; TotalTime = CPU + Alist + Dlist + Idle;
g_Notify->DisplayMessage(0, stdstr_f("r4300i: %0.1f%c GFX: %0.1f%c Alist: %0.1f%c Idle: %0.1f%c", g_Notify->DisplayMessage(0, stdstr_f("r4300i: %0.1f%c GFX: %0.1f%c Alist: %0.1f%c Idle: %0.1f%c",