Interface nsIHangDetailsType

A scriptable interface for getting information about a BHR detected hang. This is the type of the subject of the "bhr-thread-hang" observer topic.

Hierarchy

Properties

annotations: any

The hang annotations which were captured when the hang occured. This attribute is a JS object of key-value pairs.

duration: number

The detected duration of the hang in milliseconds.

modules: any

Returns the modules which were captured by BHR.

This value takes the following form: [ ["fileName", "BreakpadId"], ... ]

process: string

The type of process which produced the hang. This should be either: "default", "content", or "gpu".

remoteType: string

The remote type of the content process which produced the hang.

runnableName: string

The name of the runnable which hung if it hung on the main thread.

stack: any

Returns the stack which was captured by BHR. The offset is encoded as a hex string, as it can contain numbers larger than JS can hold losslessly.

This value takes the following form: [ [moduleIndex, offset], ... ]

thread: string

The name of the thread which hung.

wasPersisted: bool

The hang was persisted to disk as a permahang, so we can clear the permahang file once we submit this.

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

Generated using TypeDoc