Struct xpcom::interfaces::nsIProfiler
[−]
[src]
#[repr(C)]pub struct nsIProfiler { /* fields omitted */ }
interface nsIProfiler : nsISupports
Methods
impl nsIProfiler
[src]
pub fn coerce<T: nsIProfilerCoerce>(&self) -> &T
[src]
Cast this nsIProfiler
to one of its base interfaces.
impl nsIProfiler
[src]
pub unsafe fn CanProfile(&self, _retval: *mut bool) -> nsresult
[src]
boolean CanProfile ();
pub unsafe fn StartProfiler(
&self,
aEntries: uint32_t,
aInterval: c_double,
aFeatures: *mut *const c_char,
aFeatureCount: uint32_t,
aFilters: *mut *const c_char,
aFilterCount: uint32_t
) -> nsresult
[src]
&self,
aEntries: uint32_t,
aInterval: c_double,
aFeatures: *mut *const c_char,
aFeatureCount: uint32_t,
aFilters: *mut *const c_char,
aFilterCount: uint32_t
) -> nsresult
void StartProfiler (in uint32_t aEntries, in double aInterval, [array, size_is (aFeatureCount)] in string aFeatures, in uint32_t aFeatureCount, [array, size_is (aFilterCount), optional] in string aFilters, [optional] in uint32_t aFilterCount);
pub unsafe fn StopProfiler(&self) -> nsresult
[src]
void StopProfiler ();
pub unsafe fn IsPaused(&self, _retval: *mut bool) -> nsresult
[src]
boolean IsPaused ();
pub unsafe fn PauseSampling(&self) -> nsresult
[src]
void PauseSampling ();
pub unsafe fn ResumeSampling(&self) -> nsresult
[src]
void ResumeSampling ();
pub unsafe fn AddMarker(&self, aMarker: *const c_char) -> nsresult
[src]
void AddMarker (in string aMarker);
pub unsafe fn GetProfile(
&self,
aSinceTime: c_double,
_retval: *mut *const c_char
) -> nsresult
[src]
&self,
aSinceTime: c_double,
_retval: *mut *const c_char
) -> nsresult
string GetProfile ([optional] in double aSinceTime);
pub unsafe fn IsActive(&self, _retval: *mut bool) -> nsresult
[src]
boolean IsActive ();
pub unsafe fn GetFeatures(
&self,
aCount: *mut uint32_t,
aFeatures: *mut *mut *const c_char
) -> nsresult
[src]
&self,
aCount: *mut uint32_t,
aFeatures: *mut *mut *const c_char
) -> nsresult
/**
* Returns an array of the features that are supported in this build.
* Features may vary depending on platform and build flags.
*/
void GetFeatures (out uint32_t aCount, [array, size_is (aCount), retval] out string aFeatures);
pub unsafe fn GetAllFeatures(
&self,
aCount: *mut uint32_t,
aFeatures: *mut *mut *const c_char
) -> nsresult
[src]
&self,
aCount: *mut uint32_t,
aFeatures: *mut *mut *const c_char
) -> nsresult
/**
* Returns an array of all features that are supported by the profiler.
* The array may contain features that are not supported in this build.
*/
void GetAllFeatures (out uint32_t aCount, [array, size_is (aCount), retval] out string aFeatures);
pub unsafe fn GetStartParams(
&self,
aStartParams: *mut *const nsIProfilerStartParams
) -> nsresult
[src]
&self,
aStartParams: *mut *const nsIProfilerStartParams
) -> nsresult
/**
* The starting parameters that were sent to the profiler for sampling.
* If the profiler is not currently sampling, this will return null.
*/
[noscript] readonly attribute nsIProfilerStartParams startParams;
pub unsafe fn GetBufferInfo(
&self,
aCurrentPosition: *mut uint32_t,
aTotalSize: *mut uint32_t,
aGeneration: *mut uint32_t
) -> nsresult
[src]
&self,
aCurrentPosition: *mut uint32_t,
aTotalSize: *mut uint32_t,
aGeneration: *mut uint32_t
) -> nsresult
void GetBufferInfo (out uint32_t aCurrentPosition, out uint32_t aTotalSize, out uint32_t aGeneration);
pub unsafe fn GetElapsedTime(&self, _retval: *mut c_double) -> nsresult
[src]
/**
* Returns the elapsed time, in milliseconds, since the profiler's epoch.
* The epoch is guaranteed to be constant for the duration of the
* process, but is otherwise arbitrary.
*/
double getElapsedTime ();
pub unsafe fn DumpProfileToFile(&self, aFilename: *const c_char) -> nsresult
[src]
/**
* Dump the collected profile to a file.
*/
void dumpProfileToFile (in string aFilename);
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 nsIProfiler
[src]
const IID: nsIID
IID: nsIID = nsID(3939759964, 3598, 20411, [144, 28, 30, 83, 146, 239, 91, 42])
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 nsIProfiler
[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 nsIProfiler
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.