Struct xpcom::interfaces::nsIPerformanceAlert
[−]
[src]
#[repr(C)]pub struct nsIPerformanceAlert { /* fields omitted */ }
interface nsIPerformanceAlert : nsISupports
/**
* A performance alert.
*/
Methods
impl nsIPerformanceAlert
[src]
pub fn coerce<T: nsIPerformanceAlertCoerce>(&self) -> &T
[src]
Cast this nsIPerformanceAlert
to one of its base interfaces.
impl nsIPerformanceAlert
[src]
pub const REASON_SLOWDOWN: i64
REASON_SLOWDOWN: i64 = 1
/**
* A slowdown was detected.
*
* See REASON_JANK_* for details on whether this slowdown was user-noticeable.
*/
pub const REASON_JANK_IN_ANIMATION: i64
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.
*/
pub const REASON_JANK_IN_INPUT: i64
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.
*/
pub unsafe fn GetReason(&self, aReason: *mut uint32_t) -> nsresult
[src]
/**
* The reason for the alert, as a bitwise or of the various REASON_*
* constants.
*/
readonly attribute unsigned long reason;
pub unsafe fn GetHighestJank(&self, aHighestJank: *mut uint64_t) -> nsresult
[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;
pub unsafe fn GetHighestCPOW(&self, aHighestCPOW: *mut uint64_t) -> nsresult
[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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIPerformanceAlert
[src]
const IID: nsIID
IID: nsIID = nsID(2824275627, 55043, 18055, [136, 101, 120, 205, 119, 30, 171, 147])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIPerformanceAlert
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.