Closed Bug 1621407 Opened 4 years ago Closed 4 years ago

Measure cpu time

Categories

(Core :: Gecko Profiler, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1329600

People

(Reporter: snorp, Unassigned)

Details

AFAIK we currently only record real time with each sample. If we also recorded the CPU time (CLOCK_THREAD_CPUTIME_ID on Linux), we would know how long the thread was scheduled by the OS. This may help developers to spot thread or process priority problems.

Thank you for opening this bug. I've been thinking about this recently, and also for Windows (with e.g., https://docs.microsoft.com/en-au/windows/win32/api/processthreadsapi/nf-processthreadsapi-getthreadtimes ).

There's actually already bug 1329600, I'll refresh it...

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.