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 filehtml_path
- Path for the output HTML fileproject_name
- Name of the project for the dashboard
§Returns
Ok(BinaryHtmlExportStats)
- Export statistics on successErr(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);