Track which core was used to schedule

This commit is contained in:
Alex
2023-05-05 18:45:28 +03:00
parent 59ebcdfa8e
commit b0e0415b3e
3 changed files with 7 additions and 0 deletions

View File

@ -481,6 +481,7 @@ namespace Tasking
uint64_t SchedTmpTicks = TimeManager->GetCounter();
this->LastTaskTicks.store(SchedTmpTicks - this->SchedulerTicks.load());
CPUData *CurrentCPU = GetCurrentCPU();
this->LastCore.store(CurrentCPU->ID);
schedbg("Scheduler called on CPU %d.", CurrentCPU->ID);
schedbg("%d: %ld%%", CurrentCPU->ID, GetUsage(CurrentCPU->ID));