feat: graphing in MTK toolkit, kernel exposes CPU time, Processes app Performance tab
This commit is contained in:
@@ -163,6 +163,7 @@ namespace Sched {
|
||||
processTable[i].stackBase = 0;
|
||||
processTable[i].entryPoint = 0;
|
||||
processTable[i].sliceRemaining = 0;
|
||||
processTable[i].cpuTimeMs = 0;
|
||||
processTable[i].pml4Phys = 0;
|
||||
processTable[i].kernelStackTop = 0;
|
||||
processTable[i].userStackTop = 0;
|
||||
@@ -353,6 +354,7 @@ namespace Sched {
|
||||
proc.stackBase = (uint64_t)kernelStackBase;
|
||||
proc.entryPoint = entry;
|
||||
proc.sliceRemaining = TimeSliceMs;
|
||||
proc.cpuTimeMs = 0;
|
||||
proc.pml4Phys = pml4Phys;
|
||||
proc.kernelStackTop = kernelStackTop;
|
||||
proc.userStackTop = UserStackTop - 8;
|
||||
@@ -638,6 +640,8 @@ namespace Sched {
|
||||
return;
|
||||
}
|
||||
|
||||
processTable[slot].cpuTimeMs += elapsedMs;
|
||||
|
||||
// Check if another CPU requested this process be killed.
|
||||
// We are on the CPU running it, so ExitProcess is safe here.
|
||||
if (processTable[slot].killPending) {
|
||||
|
||||
Reference in New Issue
Block a user