pub fn start(&mut self) {
        match self._start() {
            Ok(_) => log::trace!(target: LOG_TAG, "Agent started"),
            Err(_) => log::error!(target: LOG_TAG, "Error starting agent"),
        }
    }
/// Start profiling and sending data. The agent will keep running until stopped. The agent will send data to the server every 10s secondy.
/// # Example
/// ```ignore
/// let agent = PyroscopeAgent::builder("http://localhost:8080", "my-app").build()?;
/// agent.start();
/// ```
Start profiling and sending data. The agent will keep running until stopped. The agent will send data to the server every 10s secondy.
Start profiling and sending data . The agent will keep running until stopped . The agent will send data to the server every 10s secondy .
pub fn start(&mut self) {
        match self._start() {
            Ok(_) => log::trace!(target: LOG_TAG, "Agent started"),
            Err(_) => log::error!(target: LOG_TAG, "Error starting agent"),
        }
    }
pub fn start ( & mut self ) { match self . _start ( ) { Ok ( _ ) => log :: trace ! ( target LOG_TAG " " ) , Err ( _ ) => log :: error ! ( target LOG_TAG " " ) , } }
Start profiling and sending data.
Start profiling and sending data .
&mut self
&mut self
example
None