Bug 1823622 - Part 2: Refine parallel marking telemetry to exclude wait times r=sfink
commitc2985a0576c531a6319cb51b445bbb54135c79fb
authorJon Coppeard <jcoppeard@mozilla.com>
Tue, 21 Mar 2023 18:55:18 +0000 (21 18:55 +0000)
committerJon Coppeard <jcoppeard@mozilla.com>
Tue, 21 Mar 2023 18:55:18 +0000 (21 18:55 +0000)
treea37f996504a930e3f3db385e9f15f84bb4add971
parentbad11fdff98da1eb365d703fd9ba6d71de9fd270
Bug 1823622 - Part 2: Refine parallel marking telemetry to exclude wait times r=sfink

There are three measurements made for parallel mark threads: 1) total time, 2)
marking time and 3) waiting time (when the thread is blocked on a condition
variable).

When calculating utilization we want to use the time the thread was running so
we should exclude waiting time. When calculating the speedup over single
threaded marking we want to use the time the thread spent marking.

Depends on D173127

Differential Revision: https://phabricator.services.mozilla.com/D173128
js/src/gc/Statistics.cpp