Closed Bug 1846270 Opened 1 year ago Closed 1 year ago

GC profile background work time double counts parallel marking time

Categories

(Core :: JavaScript: GC, defect, P5)

defect

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(2 files)

The 'bgwrk' column of profile information produced when using JS_GC_PROFILE double counts time spent parallel marking.

This is because it sums all parallel phase times, and parallel marking records its total time separately from time spend marking and waiting.

Total background time sums all phases so this currently double counts time from
parallel marking. The patch stop recording the total time separately and
instead records its componenets.

Depends on D184939

Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fd510d9d3f04 Split times recorded for parallel marking as these will be summed later r=sfink
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch

My previous patch changed the way |parallelRunTime| by adding waiting time
where it was previously subtracted. The utilization telemetry is meant to show
the fraction of time the helper threads spent running so waiting time should
not be included.

Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5616c5fbcec0 Fix parallel marking utilization telemetry broken by previous patch in this bug r=sfink
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: