pub struct TracingController { /* private fields */ }Expand description
High-level controller for Chrome tracing on a single Page.
§Examples
let tracing = page.tracing();
tracing.start(Some(TracingStartOptions::default())).await?;
// ... perform actions to record ...
let result = tracing.stop(None).await?;
assert!(!result.data.is_empty());Implementations§
Source§impl TracingController
impl TracingController
Sourcepub async fn is_recording(&self) -> bool
pub async fn is_recording(&self) -> bool
Returns true if tracing has been started and not yet fully stopped.
Sourcepub async fn categories(&self) -> Result<Vec<String>>
pub async fn categories(&self) -> Result<Vec<String>>
Queries the browser for supported tracing categories.
Auto Trait Implementations§
impl Freeze for TracingController
impl !RefUnwindSafe for TracingController
impl Send for TracingController
impl Sync for TracingController
impl Unpin for TracingController
impl !UnwindSafe for TracingController
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