Struct mozjs::jsapi::PerformanceGroup
[−]
[src]
#[repr(C)]pub struct PerformanceGroup { pub _vftable: *const _vftable_PerformanceGroup, pub recentCycles_: u64, pub recentTicks_: u64, pub recentCPOW_: u64, pub iteration_: u64, pub isActive_: bool, pub isUsedInThisIteration_: bool, pub owner_: *const AutoStopwatch, pub refCount_: u64, }
Abstract base class for a representation of the performance of a component. Embeddings interested in performance monitoring should provide a concrete implementation of this class, as well as the relevant callbacks (see below).
Fields
_vftable: *const _vftable_PerformanceGroup
recentCycles_: u64
recentTicks_: u64
recentCPOW_: u64
iteration_: u64
isActive_: bool
isUsedInThisIteration_: bool
owner_: *const AutoStopwatch
refCount_: u64
Methods
impl PerformanceGroup
[src]
pub unsafe fn iteration(&mut self) -> u64
[src]
pub unsafe fn isAcquired(&mut self, it: u64) -> bool
[src]
pub unsafe fn isAcquired1(
&mut self,
it: u64,
owner: *const AutoStopwatch
) -> bool
[src]
&mut self,
it: u64,
owner: *const AutoStopwatch
) -> bool
pub unsafe fn acquire(&mut self, it: u64, owner: *const AutoStopwatch)
[src]
pub unsafe fn release(&mut self, it: u64, owner: *const AutoStopwatch)
[src]
pub unsafe fn recentCycles(&mut self, iteration: u64) -> u64
[src]
pub unsafe fn addRecentCycles(&mut self, iteration: u64, cycles: u64)
[src]
pub unsafe fn recentTicks(&mut self, iteration: u64) -> u64
[src]
pub unsafe fn addRecentTicks(&mut self, iteration: u64, ticks: u64)
[src]
pub unsafe fn recentCPOW(&mut self, iteration: u64) -> u64
[src]
pub unsafe fn addRecentCPOW(&mut self, iteration: u64, CPOW: u64)
[src]
pub unsafe fn resetRecentData(&mut self)
[src]
pub unsafe fn isActive(&mut self) -> bool
[src]
pub unsafe fn setIsActive(&mut self, arg1: bool)
[src]
pub unsafe fn isUsedInThisIteration(&mut self) -> bool
[src]
pub unsafe fn setIsUsedInThisIteration(&mut self, arg1: bool)
[src]
pub unsafe fn AddRef(&mut self)
[src]
pub unsafe fn Release(&mut self)
[src]
Trait Implementations
impl Debug for PerformanceGroup
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more