Closed Bug 1585697 Opened 6 years ago Closed 6 years ago

Refactor CycleCollectorStats a little

Categories

(Core :: DOM: Core & HTML, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(4 files)

There's a bunch of statics globals in nsJSEnvironment.cpp that concern time spent running forget skippable that could be moved into CycleCollectorStats, and a few other things that could be tidied up.

This needs to be defined before FireForgetSkippable for the subsequnt patches.

I'm not sure what if there's a preference either way, but all the other globals in nsJSEnvironement.cpp are static so I made the CycleCollectorStats global static too.

Depends on D47918

Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c3c52501f575 Move CycleCollectorStats definition to the top of the file r=mccr8 https://hg.mozilla.org/integration/autoland/rev/5da58cc85764 Make CycleCollectorStats instance static for consistency with other globals r=mccr8 https://hg.mozilla.org/integration/autoland/rev/d2a59efd0e55 Move forget skippable stats into CycleCollectorStats class r=mccr8 https://hg.mozilla.org/integration/autoland/rev/129bdec0c8d2 Refactor nsJSContext::EndCycleCollectionCallback to split out telemetry and logging code into CycleCollectorStats methods r=mccr8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: