Struct xpcom::interfaces::nsIPerformanceStats [] [src]

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

interface nsIPerformanceStats : nsIPerformanceGroupDetails

/**
 * Snapshot of the performance of a component, e.g. a web
 * page, system built-ins, a module or the entire process itself.
 *
 * All values are monotonic and are updated only when
 * `nsIPerformanceStatsService.isStopwatchActive` is `true`.
 */

Methods

impl nsIPerformanceStats
[src]

[src]

Cast this nsIPerformanceStats to one of its base interfaces.

impl nsIPerformanceStats
[src]

[src]

/**
   * Total amount of time spent executing code in this group, in
   * microseconds.
   */

readonly attribute unsigned long long totalUserTime;

[src]

readonly attribute unsigned long long totalSystemTime;

[src]

readonly attribute unsigned long long totalCPOWTime;

[src]

/**
   * Total number of times code execution entered this group,
   * since process launch. This may be greater than the number
   * of times we have entered the event loop.
   */

readonly attribute unsigned long long ticks;

[src]

/**
   * Jank indicator.
   *
   * durations[i] == number of times execution of this group
   * lasted at lest 2^i ms.
   */

void getDurations ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out unsigned long long aNumberOfOccurrences);

Methods from Deref<Target = nsIPerformanceGroupDetails>

[src]

Cast this nsIPerformanceGroupDetails to one of its base interfaces.

[src]

/**
   * An identifier unique to the component.
   *
   * This identifier is somewhat human-readable to aid with debugging,
   * but clients should not rely upon the format.
   */

readonly attribute AString groupId;

[src]

/**
   * A somewhat human-readable name for the component.
   */

readonly attribute AString name;

[src]

/**
   * If the component is code executed in a window, the ID of the topmost
   * outer window (i.e. the tab), otherwise 0.
   */

readonly attribute uint64_t windowId;

[src]

/**
   * `true` if this component is executed with system privileges
   * (e.g. the platform itself), `false` otherwise
   * (e.g. webpages).
   */

readonly attribute bool isSystem;

[src]

/**
   * The process running this group.
   */

readonly attribute unsigned long long processId;

[src]

/**
   * `true` if the code is executed in a content process, `false` otherwise.
   */

readonly attribute bool isContentProcess;

Trait Implementations

impl XpCom for nsIPerformanceStats
[src]

IID: nsIID = nsID(2321767755, 43606, 18027, [154, 125, 159, 145, 202, 148, 5, 239])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPerformanceStats
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.