Struct xpcom::interfaces::nsIPerformanceStatsService [] [src]

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

interface nsIPerformanceStatsService : nsISupports

Methods

impl nsIPerformanceStatsService
[src]

[src]

Cast this nsIPerformanceStatsService to one of its base interfaces.

impl nsIPerformanceStatsService
[src]

[src]

/**
   * The threshold, in microseconds, above which a performance group is
   * considered "slow" and should raise performance alerts.
   */

attribute unsigned long long jankAlertThreshold;

[src]

/**
   * The threshold, in microseconds, above which a performance group is
   * considered "slow" and should raise performance alerts.
   */

attribute unsigned long long jankAlertThreshold;

[src]

/**
   * If a user is seeing an animation and we spend too long executing
   * JS code while blocking refresh, this will be visible to the user.
   *
   * We assume that any jank during an animation and lasting more than
   * 2^animationJankLevelThreshold ms will be visible.
   */

attribute short animationJankLevelThreshold;

[src]

/**
   * If a user is seeing an animation and we spend too long executing
   * JS code while blocking refresh, this will be visible to the user.
   *
   * We assume that any jank during an animation and lasting more than
   * 2^animationJankLevelThreshold ms will be visible.
   */

attribute short animationJankLevelThreshold;

[src]

/**
   * If a user performs an input (e.g. clicking, pressing a key, but
   * *NOT* moving the mouse), and we spend too long executing JS code
   * before displaying feedback, this will be visible to the user even
   * if there is no ongoing animation.
   *
   * We assume that any jank during `userInputDelayThreshold` us after
   * the user input will be visible.
   */

attribute unsigned long long userInputDelayThreshold;

[src]

/**
   * If a user performs an input (e.g. clicking, pressing a key, but
   * *NOT* moving the mouse), and we spend too long executing JS code
   * before displaying feedback, this will be visible to the user even
   * if there is no ongoing animation.
   *
   * We assume that any jank during `userInputDelayThreshold` us after
   * the user input will be visible.
   */

attribute unsigned long long userInputDelayThreshold;

[src]

/**
   * A buffering delay, in milliseconds, used by the service to
   * regroup performance alerts, before observers are actually
   * noticed. Higher delays let the system avoid redundant
   * notifications for the same group, and are generally better for
   * performance.
   */

attribute unsigned long jankAlertBufferingDelay;

[src]

/**
   * A buffering delay, in milliseconds, used by the service to
   * regroup performance alerts, before observers are actually
   * noticed. Higher delays let the system avoid redundant
   * notifications for the same group, and are generally better for
   * performance.
   */

attribute unsigned long jankAlertBufferingDelay;

[src]

/**
   * Get a nsIPerformanceObservable representing a DOM window. This
   * observable may then be used to (un)register for watching
   * performance alerts for this window.
   *
   * Note that this covers only the current process.
   *
   * Use special window id 0 to get an observable that may be used to
   * (un)register for watching performance alerts of all windows at
   * once.
   */

nsIPerformanceObservable getObservableWindow (in unsigned long long windowId);

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 nsIPerformanceStatsService
[src]

IID: nsIID = nsID(1348191278, 48696, 19027, [186, 186, 146, 203, 51, 105, 12, 222])

[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 nsIPerformanceStatsService
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPerformanceStatsService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.