Struct xpcom::interfaces::nsIPerformanceGroupDetails
[−]
[src]
#[repr(C)]pub struct nsIPerformanceGroupDetails { /* fields omitted */ }
interface nsIPerformanceGroupDetails : nsISupports
/**
* Mechanisms for querying the current process about performance
* information.
*
* JavaScript clients should rather use PerformanceStats.jsm.
*/
/**
* Identification details for a performance group.
*
* A performance group is a set of JavaScript compartments whose
* performance is observed as a single entity. Typical examples of
* performance groups: a webpage without its frames, a
* webpage with all its frames, the entire JS runtime, ...
*/
Methods
impl nsIPerformanceGroupDetails
[src]
pub fn coerce<T: nsIPerformanceGroupDetailsCoerce>(&self) -> &T
[src]
Cast this nsIPerformanceGroupDetails
to one of its base interfaces.
impl nsIPerformanceGroupDetails
[src]
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;
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 nsIPerformanceGroupDetails
[src]
const IID: nsIID
IID: nsIID = nsID(2571916990, 37786, 20256, [131, 100, 18, 79, 100, 34, 216, 106])
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 nsIPerformanceGroupDetails
[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 nsIPerformanceGroupDetails
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.