export_binary_to_html_dashboard

Function export_binary_to_html_dashboard 

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

Automatically choose the optimal parsing strategy based on binary type

This function detects the binary type and automatically selects the most appropriate parsing method:

  • User-only binaries: Simple, fast processing
  • Full binaries: Optimized processing with advanced features

§Arguments

  • binary_path - Path to the binary file
  • base_name - Base name for output JSON files

§Returns

  • Ok(()) - Parsing completed successfully
  • Err(BinaryExportError) - If parsing fails

Export binary data directly to interactive HTML dashboard

This function creates a complete HTML dashboard with interactive visualizations using the templates in ./templates/dashboard.html

§Example

use memscope_rs::export::binary::export_binary_to_html_dashboard;

// Create interactive HTML dashboard
export_binary_to_html_dashboard(
    "MemoryAnalysis/my_program.memscope",
    "MemoryAnalysis/my_program/dashboard.html",
    "my_program"
)?;