Closed
Bug 1753310
Opened 2 years ago
Closed 2 years ago
Process CPU times shown in about:processes are dramatically underestimated on M1 Macs
Categories
(Toolkit :: Performance Monitoring, defect)
Toolkit
Performance Monitoring
Tracking
()
RESOLVED
FIXED
98 Branch
Tracking | Status | |
---|---|---|
firefox98 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 file)
The % of CPU use of processes is almost always < 1% on my M1 Macbook, despite some threads of the process using more than 10% of a core.
Thankfully others have already figured this out. The pti.pti_total_user
and pti.pti_total_system
values returned by the proc_pidinfo
/ PROC_PIDTASKINFO
are expressed in system ticks, rather than in nanoseconds. The mach_timebase_info
function needs to be called to convert to nanoseconds.
On Macs with Intel CPUs, mach_timebase_info
returns 1. On M1 CPUs, the result is 125/3.
Assignee | ||
Comment 1•2 years ago
|
||
Pushed by fqueze@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/61491ef8a39c Fix process CPU times reported by about:processes, r=gerald.
Comment 3•2 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox98:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•