Fix two profiling bugs
This commit is contained in:
parent
880db15689
commit
f54c812fdf
|
|
@ -165,6 +165,7 @@ void profileGetCounters(u32 counters[5])
|
|||
// Main thread
|
||||
counters[3] = g_MainThread.cycles_saved + (osGetCount() - g_MainThread.cycles_at_dispatch);
|
||||
g_MainThread.cycles_saved = 0;
|
||||
g_MainThread.cycles_at_dispatch = osGetCount();
|
||||
|
||||
// Scheduler thread
|
||||
counters[4] = g_SchedThread.cycles_saved;
|
||||
|
|
|
|||
|
|
@ -661,7 +661,7 @@ glabel __osDispatchThread
|
|||
subu $t0, $t0, $t1 # t0 = COUNT - cycles_at_dispatch
|
||||
lw $t1, 0x230($v1) # t1 = cycles_saved
|
||||
addu $t1, $t1, $t0 # cycles_saved += COUNT - cycles_at_dispatch
|
||||
sw $t0, 0x230($v1)
|
||||
sw $t1, 0x230($v1)
|
||||
|
||||
.Ldispatch:
|
||||
addiu $t0, $zero, 0x4
|
||||
|
|
|
|||
Loading…
Reference in New Issue