Skip to main content

PerformanceMethods

pub trait PerformanceMethods<D: DomTypes> {
Show 15 methods // Required methods fn Now(&self) -> Finite<f64>; fn TimeOrigin(&self) -> Finite<f64>; fn GetEntries(&self) -> Vec<DomRoot<D::PerformanceEntry>> ⓘ; fn GetEntriesByType( &self, type_: DOMString, ) -> Vec<DomRoot<D::PerformanceEntry>> ⓘ; fn GetEntriesByName( &self, name: DOMString, type_: Option<DOMString>, ) -> Vec<DomRoot<D::PerformanceEntry>> ⓘ; fn Mark( &self, cx: &mut JSContext, markName: DOMString, markOptions: &PerformanceMarkOptions, ) -> Fallible<DomRoot<D::PerformanceMark>>; fn ClearMarks(&self, markName: Option<DOMString>); fn Measure( &self, cx: &mut JSContext, measureName: DOMString, startOrMeasureOptions: StringOrPerformanceMeasureOptions, endMark: Option<DOMString>, ) -> Fallible<DomRoot<D::PerformanceMeasure>>; fn ClearMeasures(&self, measureName: Option<DOMString>); fn ClearResourceTimings(&self); fn SetResourceTimingBufferSize(&self, maxSize: u32); fn GetOnresourcetimingbufferfull( &self, cx: &mut JSContext, ) -> Option<RootedCallback<EventHandlerNonNull<D>>>; fn SetOnresourcetimingbufferfull( &self, cx: &mut JSContext, value: Option<RootedCallback<EventHandlerNonNull<D>>>, ); fn Timing(&self) -> DomRoot<D::PerformanceTiming>; fn Navigation(&self) -> DomRoot<D::PerformanceNavigation>;
}

Required Methods§

Implementors§