parse_binary_to_html_direct

Function parse_binary_to_html_direct 

Source
pub fn parse_binary_to_html_direct<P: AsRef<Path>>(
    binary_path: P,
    html_path: P,
    project_name: &str,
) -> Result<BinaryHtmlExportStats, BinaryExportError>
Expand description

High-performance binary to HTML direct conversion

This function provides the main interface for converting binary memory analysis files directly to HTML dashboards with optimal performance.

§Arguments

  • binary_path - Path to the binary .memscope file
  • html_path - Path for the output HTML file
  • project_name - Name of the project for the dashboard

§Returns

  • Ok(BinaryHtmlExportStats) - Export statistics on success
  • Err(BinaryExportError) - Error details on failure

§Example

use memscope_rs::export::binary::parse_binary_to_html_direct;

let stats = parse_binary_to_html_direct(
    "data.memscope",
    "dashboard.html",
    "my_project"
)?;

println!("Conversion completed in {}ms", stats.total_export_time_ms);