20 #include "pedigree/kernel/process/TimeTracker.h" 21 #include "pedigree/kernel/process/Process.h" 22 #include "pedigree/kernel/process/Thread.h" 23 #include "pedigree/kernel/processor/Processor.h" 24 #include "pedigree/kernel/processor/ProcessorInformation.h" 26 TimeTracker::TimeTracker(
Process *pProcess,
bool fromUserspace)
27 : m_pProcess(pProcess), m_bFromUserspace(fromUserspace)
45 m_pProcess->recordTime(!m_bFromUserspace);
48 TimeTracker::~TimeTracker()
54 m_pProcess->trackTime(!m_bFromUserspace);
57 m_pProcess->recordTime(m_bFromUserspace);
static ProcessorInformation & information()
Process * getParent() const
void trackTime(bool bUserspace)