Closed Bug 1545091 Opened 6 months ago Closed 5 months ago

Spew tracelogger summary statistics

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox68 --- wontfix
firefox69 --- fixed

People

(Reporter: denispal, Assigned: denispal)

References

Details

Attachments

(1 file)

The idea here is to spew per script statistics about each event the tracelogger has recorded. We can control this with the existing spewing env variables and spew after profiling from the browser or whenever the JS shell exits.

Add Jitspewing control for tracelogger data. This can be enabled from the profiler or from the JS shell. Usage is as follows:

From browser (ION_SPEW_FILENAME is recommended here to stdout doesn't get clobbered by each process):

  1. JS_TRACE_LOGGING=1 IONFLAGS=tracelogger ION_SPEW_FILENAME=tracelogger ./mach run
  2. Enable JSTracer feature in profiler addon
  3. Start profiling and ctrl+shift+2 to view profile, and the data will be automatically spewed during profile collection.

From shell:

  1. JS_TRACE_LOGGING=1 IONFLAGS=tracelogger dist/bin/js test.js
  2. Data is automatically spewed to stdout when the shell exits, or use ION_SPEW_FILENAME.

There is an optional environment variable JS_TRACELOGGER_SPEW that can be used to emit specific events, for example JS_TRACELOGGER_SPEW="Interpreter,Baseline,GC" will emit only those specific events along with the script and self time of each script.

The structured spewer is also supported with SPEW=tracelogger, and this will emit the tracelogger data for every recorded event.

Depends on: 1550807
Pushed by dpalmeiro@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c6ab5b9a7c07
Spew tracelogger statistics with IONFLAGS=tracelogger r=iain,mstange
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
Regressions: 1553362
You need to log in before you can comment on or make changes to this bug.