Skip to main content

profile_inspect/parser/
mod.rs

1mod cpu_profile;
2mod heap_profile;
3
4pub use cpu_profile::*;
5pub use heap_profile::*;
6
7use thiserror::Error;
8
9/// Errors that can occur during profile parsing
10#[derive(Debug, Error)]
11pub enum ParseError {
12    #[error("Failed to parse JSON: {0}")]
13    Json(#[from] serde_json::Error),
14
15    #[error("Failed to read file: {0}")]
16    Io(#[from] std::io::Error),
17
18    #[error("Invalid profile format: {0}")]
19    InvalidFormat(String),
20}