// @generated by scripts/generate-puppeteer-bindings.mjs from
// rust/protocol/puppeteer/api.json. Do not edit by hand.
#![allow(clippy::all, missing_docs, unused_imports, non_snake_case)]
use serde_json::Value;
use super::*;
use crate::puppeteer::bridge::{binary, remote_type, BridgeError, JsFunction, Remote};
remote_type!(
/// Puppeteer's `Tracing` (puppeteer-core 25.10.0), a remote object
/// served by `browser-commander serve --stdio`.
Tracing
);
impl Tracing {
/// `Tracing.start`
///
/// ```text
/// start(options?: TracingOptions): Promise<void>
/// ```
pub async fn start(&self, options: Option<Value>) -> Result<(), BridgeError> {
self.remote.call("start", vec![options]).await
}
/// `Tracing.stop`
///
/// ```text
/// stop(): Promise<Uint8Array | undefined>
/// ```
pub async fn stop(&self) -> Result<Option<Vec<u8>>, BridgeError> {
self.remote.call("stop", vec![]).await
}
}