Closed Bug 1546934 Opened 6 years ago Closed 5 years ago

Make code coverage use a process-wide flag

Categories

(Core :: JavaScript Engine, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file)

In Realm::collectCoverageForDebug we check:

  return debuggerObservesCoverage() ||
         runtimeFromAnyThread()->profilingScripts ||
         runtimeFromAnyThread()->lcovOutput().isEnabled();

The last two are used when either (1) the JS_CODE_COVERAGE_OUTPUT_DIR environment variable is set or (2) the --code-coverage flag is used in the shell.

Both of those conditions affect all runtimes in the process, so we can simplify them to a single global flag that's initialized before any runtimes are created.

Having this flag will simplify the Baseline Interpreter work.

This will simplify the Baseline Interpreter work.

Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/24740ab9a726 Change LCov code coverage machinery to use a process-wide flag. r=nbp
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: