Closed Bug 1896505 Opened 5 months ago Closed 4 months ago

Add use-counter telemetry for subclassing types

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: mgaudet, Assigned: mgaudet)

References

(Blocks 1 open bug)

Details

Attachments

(12 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

See https://github.com/tc39/proposal-rm-builtin-subclassing for the proposal; this bug tracks adding use counter telemetry to enable tracking these subclassing types to determine their dynamic prevelance so that we can decide if this proposal has a chance of progressing.

Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → mgaudet
Status: NEW → ASSIGNED

This patch will report the Type II Array subclassing.

Performance Impact seems to be minimal; measurements with local microbenchmarks don't show much slow down, and here is a try push with no confident changes.

Note: I have no patches written for the RegExp Type IV subclassing yet.

Pushed by mgaudet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/430d4667cdfe Document IsArraySpecies r=jandem https://hg.mozilla.org/integration/autoland/rev/3de07420b464 Define UseCounters with a macro list to ease future code generation r=jandem https://hg.mozilla.org/integration/autoland/rev/1b6d47b2fddc Add a testing function to be able to read out shell use counter data r=jandem https://hg.mozilla.org/integration/autoland/rev/0705dd0789c1 Add initial reporting machinery for subclassing. r=jandem https://hg.mozilla.org/integration/autoland/rev/dd8c51e513f4 Track Promise Type II subclassing r=jandem https://hg.mozilla.org/integration/autoland/rev/c83e6896006d Track TypedArray Type II Subclassing r=jandem https://hg.mozilla.org/integration/autoland/rev/8928f4e3e470 Track Type III Subclassing in Array r=jandem https://hg.mozilla.org/integration/autoland/rev/51507968e1ae Track Type III Subclassing in Promise r=jandem https://hg.mozilla.org/integration/autoland/rev/9d3c1db7d808 Track Type III subclassing in TypedArrays r=jandem https://hg.mozilla.org/integration/autoland/rev/2887f4f28f09 Track Type III subclassing in ArrayBuffer and SharedArrayBuffer r=jandem https://hg.mozilla.org/integration/autoland/rev/574facb67f7f 1896595: apply code formatting via Lando
Flags: needinfo?(mgaudet)

The challenge of getting this right is truly comical.

Pushed by mgaudet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/72cb6cb4751b Document IsArraySpecies r=jandem https://hg.mozilla.org/integration/autoland/rev/e87f8db5d7dd Define UseCounters with a macro list to ease future code generation r=jandem https://hg.mozilla.org/integration/autoland/rev/c53f704e9298 Add a testing function to be able to read out shell use counter data r=jandem https://hg.mozilla.org/integration/autoland/rev/fa744dc84f2c Add initial reporting machinery for subclassing. r=jandem https://hg.mozilla.org/integration/autoland/rev/cf7f56a0bab0 Track Promise Type II subclassing r=jandem https://hg.mozilla.org/integration/autoland/rev/0619a4b617fe Track TypedArray Type II Subclassing r=jandem https://hg.mozilla.org/integration/autoland/rev/8d5a38566676 Track Type III Subclassing in Array r=jandem https://hg.mozilla.org/integration/autoland/rev/bf9c11e5d5a4 Track Type III Subclassing in Promise r=jandem https://hg.mozilla.org/integration/autoland/rev/999de4ddd8c9 Track Type III subclassing in TypedArrays r=jandem https://hg.mozilla.org/integration/autoland/rev/0d5dd25610fc Track Type III subclassing in ArrayBuffer and SharedArrayBuffer r=jandem https://hg.mozilla.org/integration/autoland/rev/4b0ae75cb06d Track Type III Subclassing in RegExp r=jandem https://hg.mozilla.org/integration/autoland/rev/490483041313 Track Type IV Subclassing in RegExp r=jandem https://hg.mozilla.org/integration/autoland/rev/c71ee627271d apply code formatting via Lando
Flags: needinfo?(mgaudet)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: