Struct xpcom::interfaces::nsIPerformanceStatsService
[−]
[src]
#[repr(C)]pub struct nsIPerformanceStatsService { /* fields omitted */ }
interface nsIPerformanceStatsService : nsISupports
Methods
impl nsIPerformanceStatsService
[src]
pub fn coerce<T: nsIPerformanceStatsServiceCoerce>(&self) -> &T
[src]
Cast this nsIPerformanceStatsService
to one of its base interfaces.
impl nsIPerformanceStatsService
[src]
pub unsafe fn GetJankAlertThreshold(
&self,
aJankAlertThreshold: *mut uint64_t
) -> nsresult
[src]
&self,
aJankAlertThreshold: *mut uint64_t
) -> nsresult
/**
* The threshold, in microseconds, above which a performance group is
* considered "slow" and should raise performance alerts.
*/
attribute unsigned long long jankAlertThreshold;
pub unsafe fn SetJankAlertThreshold(
&self,
aJankAlertThreshold: uint64_t
) -> nsresult
[src]
&self,
aJankAlertThreshold: uint64_t
) -> nsresult
/**
* The threshold, in microseconds, above which a performance group is
* considered "slow" and should raise performance alerts.
*/
attribute unsigned long long jankAlertThreshold;
pub unsafe fn GetAnimationJankLevelThreshold(
&self,
aAnimationJankLevelThreshold: *mut int16_t
) -> nsresult
[src]
&self,
aAnimationJankLevelThreshold: *mut int16_t
) -> nsresult
/**
* 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;
pub unsafe fn SetAnimationJankLevelThreshold(
&self,
aAnimationJankLevelThreshold: int16_t
) -> nsresult
[src]
&self,
aAnimationJankLevelThreshold: int16_t
) -> nsresult
/**
* 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;
pub unsafe fn GetUserInputDelayThreshold(
&self,
aUserInputDelayThreshold: *mut uint64_t
) -> nsresult
[src]
&self,
aUserInputDelayThreshold: *mut uint64_t
) -> nsresult
/**
* 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;
pub unsafe fn SetUserInputDelayThreshold(
&self,
aUserInputDelayThreshold: uint64_t
) -> nsresult
[src]
&self,
aUserInputDelayThreshold: uint64_t
) -> nsresult
/**
* 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;
pub unsafe fn GetJankAlertBufferingDelay(
&self,
aJankAlertBufferingDelay: *mut uint32_t
) -> nsresult
[src]
&self,
aJankAlertBufferingDelay: *mut uint32_t
) -> nsresult
/**
* 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;
pub unsafe fn SetJankAlertBufferingDelay(
&self,
aJankAlertBufferingDelay: uint32_t
) -> nsresult
[src]
&self,
aJankAlertBufferingDelay: uint32_t
) -> nsresult
/**
* 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;
pub unsafe fn GetObservableWindow(
&self,
windowId: uint64_t,
_retval: *mut *const nsIPerformanceObservable
) -> nsresult
[src]
&self,
windowId: uint64_t,
_retval: *mut *const nsIPerformanceObservable
) -> nsresult
/**
* 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>
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 nsIPerformanceStatsService
[src]
const IID: nsIID
IID: nsIID = nsID(1348191278, 48696, 19027, [186, 186, 146, 203, 51, 105, 12, 222])
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 nsIPerformanceStatsService
[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 nsIPerformanceStatsService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.