Struct xpcom::interfaces::nsIPerformanceAlert [] [src]

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

interface nsIPerformanceAlert : nsISupports

/**
 * A performance alert.
 */

Methods

impl nsIPerformanceAlert
[src]

[src]

Cast this nsIPerformanceAlert to one of its base interfaces.

impl nsIPerformanceAlert
[src]

REASON_SLOWDOWN: i64 = 1
/**
  * A slowdown was detected.
  *
  * See REASON_JANK_* for details on whether this slowdown was user-noticeable.
  */

REASON_JANK_IN_ANIMATION: i64 = 2
/**
   * This alert was triggered during a jank in animation.
   *
   * In the current implementation, we consider that there is a jank
   * in animation if delivery of the vsync message to the main thread
   * has been delayed too much (see
   * nsIPerformanceStatsService.animationJankLevelThreshold).
   *
   * Note that this is a heuristic which may provide false positives,
   * so clients of this API are expected to perform post-processing to
   * filter out such false positives.
   */

REASON_JANK_IN_INPUT: i64 = 4
/**
   * This alert was triggered during a jank in user input.
   *
   * In the current implementation, we consider that there is a jank
   * in animation if a user input was received either immediately
   * before executing the offending code (see
   * nsIPerformanceStatsService.userInputDelayThreshold) or while
   * executing the offending code.
   *
   * Note that this is a heuristic which may provide false positives,
   * so clients of this API are expected to perform post-processing to
   * filter out such false positives.
   */

[src]

/**
   * The reason for the alert, as a bitwise or of the various REASON_*
   * constants.
   */

readonly attribute unsigned long reason;

[src]

/**
   * Longest interval spent executing code in this group
   * since the latest alert, in microseconds.
   *
   * Note that the underlying algorithm is probabilistic and may
   * provide false positives, so clients of this API are expected to
   * perform post-processing to filter out such false positives. In
   * particular, a high system load will increase the noise level on
   * this measure.
   */

readonly attribute unsigned long long highestJank;

[src]

/**
   * Longest interval spent executing CPOW in this group
   * since the latest alert, in microseconds.
   *
   * This measure is reliable and involves no heuristics. However,
   * note that the duration of CPOWs is increased by high system
   * loads.
   */

readonly attribute unsigned long long highestCPOW;

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

IID: nsIID = nsID(2824275627, 55043, 18055, [136, 101, 120, 205, 119, 30, 171, 147])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPerformanceAlert
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.