pub struct CoverageManager { /* private fields */ }Expand description
Manages CSS and JavaScript code coverage
Implementations§
Source§impl CoverageManager
impl CoverageManager
Sourcepub async fn start_js_coverage(&self) -> Result<()>
pub async fn start_js_coverage(&self) -> Result<()>
Start collecting JS and CSS coverage.
Enables Profiler domain and starts precise coverage.
Sourcepub async fn start_css_coverage(&self) -> Result<()>
pub async fn start_css_coverage(&self) -> Result<()>
Start collecting CSS coverage.
Enables CSS domain and starts tracking stylesheet usage.
Sourcepub async fn stop_js_coverage(&self) -> Result<Vec<CoverageResult>>
pub async fn stop_js_coverage(&self) -> Result<Vec<CoverageResult>>
Stop JS coverage and return results.
Sourcepub async fn stop_css_coverage(&self) -> Result<Vec<CoverageResult>>
pub async fn stop_css_coverage(&self) -> Result<Vec<CoverageResult>>
Stop CSS coverage and return results.
Sourcepub async fn stop_all(&self) -> Result<Vec<CoverageResult>>
pub async fn stop_all(&self) -> Result<Vec<CoverageResult>>
Convenience: stop both and return combined results
Trait Implementations§
Source§impl Clone for CoverageManager
impl Clone for CoverageManager
Source§fn clone(&self) -> CoverageManager
fn clone(&self) -> CoverageManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CoverageManager
impl !UnwindSafe for CoverageManager
impl Freeze for CoverageManager
impl Send for CoverageManager
impl Sync for CoverageManager
impl Unpin for CoverageManager
impl UnsafeUnpin for CoverageManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more