Sha256: d38db30e679fa9e5cd52b27f37755d08b6c047341e6cfda3bd5b90dd24956110

Contents?: true

Size: 1.19 KB

Versions: 5

Compression:

Stored size: 1.19 KB

Contents

# Define JS engine activities

# This must match the C++ enum used by the engine instrumentation patch:
# For each int value of the enum, there should be a corresponding
# element in this list with an appropriate name.
states = [
    'exitlast',
    'interpret',
    'monitor',
    'record',
    'compile',
    'execute',
    'native',
]

# 'State' codes of this number or higher are actually 'instantaneous' events.
event_start = 8;

flush_reasons = [
    'B',
    'O',
    'S',
    'G'
]

# Must match C++ enum
reasons = [
    'none',
    'abort',
    'inner',
    'doubles',
    'callback',
    'anchor',
    'backoff',
    'cold',
    'record',
    'peers',
    'execute',
    'stabilize',
    'extendFlush',
    'extendMaxBranches',
    'extendStart',
    'extendCold',
    'extendOuter',
    'mismatchExit',
    'oomExit',
    'overflowExit',
    'timeoutExit',
    'deepBailExit',
    'statusExit',
    'otherExit',
    # Special stuff that doesn't match C++
    'start',
]

# Estimated speedup vs. the interpreter when doing a given activity.
# Activities not listed default to 0.
speedup_d = {
    'interpret': 1.0,
    'record': 0.95,
    'native': 2.5
}

speedups = [ speedup_d.get(name, 0) for name in states ]

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
johnson19-2.0.0.pre3 vendor/tracemonkey/tracevis/acts.py
pre-johnson-2.0.0 vendor/tracemonkey/tracevis/acts.py
johnson-2.0.0.pre3 vendor/tracemonkey/tracevis/acts.py
johnson-2.0.0.pre2 vendor/tracemonkey/tracevis/acts.py
johnson-2.0.0.pre1 vendor/tracemonkey/tracevis/acts.py