Open Bug 1670301 Opened 4 years ago Updated 4 years ago

Add telemetry for how many JSScripts are delazified.

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

People

(Reporter: tcampbell, Unassigned)

References

(Blocks 1 open bug)

Details

As we continue to explore Stencil and revisit the tradeoffs of syntax-parsing JavaScript, it makes sense to have telemetry on the fraction of scripts/functions that are actually delazified.

A simple way to begin this would be to increment a counter in BaseScript::finalize (which is main-thread only) and at the end of the finalize accumulate that into telemetry.

These counters could check for BaseScript::hasBytecode. This basic view will be confused by relazified flags, but we can add a simple MutableFlag that is set on relazification.

You need to log in before you can comment on or make changes to this bug.