pub mod collapsed;
pub mod firefox;
pub mod pprof;
use crate::profile::SessionResult;
#[doc(inline)]
pub use collapsed::to_collapsed;
#[doc(inline)]
pub use firefox::to_firefox_json;
#[doc(inline)]
pub use pprof::{to_pprof_bytes, to_pprof_gzip};
#[derive(Debug)]
pub struct Exports {
pub pprof_gzip: Vec<u8>,
pub firefox_json: String,
pub collapsed: String,
}
pub fn all(result: &SessionResult) -> std::io::Result<Exports> {
Ok(Exports {
pprof_gzip: to_pprof_gzip(result)?,
firefox_json: to_firefox_json(result),
collapsed: to_collapsed(result),
})
}