profile-inspect 0.1.2

Analyze V8 CPU and heap profiles from Node.js/Chrome DevTools
Documentation
mod cpu_profile;
mod heap_profile;

pub use cpu_profile::*;
pub use heap_profile::*;

use thiserror::Error;

/// Errors that can occur during profile parsing
#[derive(Debug, Error)]
pub enum ParseError {
    #[error("Failed to parse JSON: {0}")]
    Json(#[from] serde_json::Error),

    #[error("Failed to read file: {0}")]
    Io(#[from] std::io::Error),

    #[error("Invalid profile format: {0}")]
    InvalidFormat(String),
}