Struct xpcom::interfaces::nsIPerformanceObservable [] [src]

#[repr(C)]
pub struct nsIPerformanceObservable { /* fields omitted */ }

interface nsIPerformanceObservable : nsISupports

/**
 * A part of the system that may be observed for slow performance.
 */

Methods

impl nsIPerformanceObservable
[src]

[src]

Cast this nsIPerformanceObservable to one of its base interfaces.

impl nsIPerformanceObservable
[src]

[src]

/**
   * If a single group is being observed, information on this group.
   */

readonly attribute nsIPerformanceGroupDetails target;

[src]

/**
   * Add an observer that will be informed in case of jank.
   *
   * Set `jankAlertThreshold` to determine how much jank is needed
   * to trigger alerts.
   *
   * If the same observer is added more than once, it will be
   * triggered as many times as it has been added.
   */

void addJankObserver (in nsIPerformanceObserver observer);

[src]

/**
   * Remove an observer previously added with `addJankObserver`.
   *
   * Noop if the observer hasn't been added.
   */

void removeJankObserver (in nsIPerformanceObserver observer);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIPerformanceObservable
[src]

IID: nsIID = nsID(3092717776, 58152, 17218, [158, 70, 140, 161, 172, 248, 199, 14])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIPerformanceObservable
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPerformanceObservable
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.