Readonly
activeReadonly
sharedContains an array of shared library objects. Every object has the properties:
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Control functions return as soon as this process' profiler has done its work. The returned promise gets resolved when sub-processes have completed their operation, or immediately if there are no sub-processes.
Synchronously dump the profile collected so far in this process to a file.
This profile will only contain data from the parent process, and from child
processes that have ended during the session; other currently-live
processes are ignored.
aFilename
may be a full path, or a path relative to where Firefox was
launched. The target directory must already exist.
Asynchronously dump the profile collected so far to a file.
Returns a promise that resolves once the file has been written, with data
from all responsive Firefox processes. Note: This blocks the parent process
while collecting its own data, then unblocks while child processes data is
being collected.
aFilename
may be a full path, or a path relative to where Firefox was
launched. The target directory must already exist.
Returns a promise that resolves to a SymbolTableAsTuple for the binary at the given path.
SymbolTable as tuple: [addrs, index, buffer] Contains a symbol table, which can be used to map addresses to strings.
The first element of this tuple, commonly named "addrs", is a sorted array of symbol addresses, as library-relative offsets in bytes, in ascending order. The third element of this tuple, commonly named "buffer", is a buffer of bytes that contains all strings from this symbol table, in the order of the addresses they correspond to, in utf-8 encoded form, all concatenated together. The second element of this tuple, commonly named "index", contains positions into "buffer". For every address, that position is where the string for that address starts in the buffer. index.length == addrs.length + 1. index[addrs.length] is the end position of the last string in the buffer.
The string for the address addrs[i] is (new TextDecoder()).decode(buffer.subarray(index[i], index[i + 1]))
Resolves the returned promise after at least one full periodic sampling in each process. Rejects the promise if sampler is not running (yet, or anymore, or paused) in the parent process. This is mainly useful in tests, to wait just long enough to guarantee that at least one sample was taken in each process.
Generated using TypeDoc
Returns a JavaScript object that contains a description of the currently configured state of the profiler when the profiler is active. This can be useful to assert the UI of the profiler's recording panel in tests. It returns null when the profiler is not active.