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]
pub fn coerce<T: nsIPerformanceStatsCoerce>(&self) -> &T
[src]
Cast this nsIPerformanceStats
to one of its base interfaces.
impl nsIPerformanceStats
[src]
pub unsafe fn GetTotalUserTime(&self, aTotalUserTime: *mut uint64_t) -> nsresult
[src]
/**
* Total amount of time spent executing code in this group, in
* microseconds.
*/
readonly attribute unsigned long long totalUserTime;
pub unsafe fn GetTotalSystemTime(
&self,
aTotalSystemTime: *mut uint64_t
) -> nsresult
[src]
&self,
aTotalSystemTime: *mut uint64_t
) -> nsresult
readonly attribute unsigned long long totalSystemTime;
pub unsafe fn GetTotalCPOWTime(&self, aTotalCPOWTime: *mut uint64_t) -> nsresult
[src]
readonly attribute unsigned long long totalCPOWTime;
pub unsafe fn GetTicks(&self, aTicks: *mut uint64_t) -> nsresult
[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;
pub unsafe fn GetDurations(
&self,
aCount: *mut uint32_t,
aNumberOfOccurrences: *mut *mut uint64_t
) -> nsresult
[src]
&self,
aCount: *mut uint32_t,
aNumberOfOccurrences: *mut *mut uint64_t
) -> nsresult
/**
* 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>
pub fn coerce<T: nsIPerformanceGroupDetailsCoerce>(&self) -> &T
[src]
Cast this nsIPerformanceGroupDetails
to one of its base interfaces.
pub unsafe fn GetGroupId(&self, aGroupId: &mut nsAString) -> nsresult
[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;
pub unsafe fn GetName(&self, aName: &mut nsAString) -> nsresult
[src]
/**
* A somewhat human-readable name for the component.
*/
readonly attribute AString name;
pub unsafe fn GetWindowId(&self, aWindowId: *mut uint64_t) -> nsresult
[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;
pub unsafe fn GetIsSystem(&self, aIsSystem: *mut bool) -> nsresult
[src]
/**
* `true` if this component is executed with system privileges
* (e.g. the platform itself), `false` otherwise
* (e.g. webpages).
*/
readonly attribute bool isSystem;
pub unsafe fn GetProcessId(&self, aProcessId: *mut uint64_t) -> nsresult
[src]
/**
* The process running this group.
*/
readonly attribute unsigned long long processId;
pub unsafe fn GetIsContentProcess(
&self,
aIsContentProcess: *mut bool
) -> nsresult
[src]
&self,
aIsContentProcess: *mut bool
) -> nsresult
/**
* `true` if the code is executed in a content process, `false` otherwise.
*/
readonly attribute bool isContentProcess;
Trait Implementations
impl XpCom for nsIPerformanceStats
[src]
const IID: nsIID
IID: nsIID = nsID(2321767755, 43606, 18027, [154, 125, 159, 145, 202, 148, 5, 239])
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 nsIPerformanceStats
[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 nsIPerformanceStats
[src]
type Target = nsIPerformanceGroupDetails
The resulting type after dereferencing.
fn deref(&self) -> &nsIPerformanceGroupDetails
[src]
Dereferences the value.