tracing-prof 0.3.0

Experimental library for profiling tracing spans.
Documentation
//! A backend storage for pprof profiles.

use std::time::SystemTime;

pub mod file;

#[cfg(feature = "pyroscope")]
pub mod pyroscope;

/// A backend storage for pprof profiles.
pub trait PProfBackend {
    /// Save a profile to the backend.
    fn save_profile(
        &self,
        kind: &str,
        start_time: SystemTime,
        end_time: SystemTime,
        profile_data: Vec<u8>,
    );
}