Expand description
Binary export module for high-performance memory tracking data export.
Features:
- 3x faster than JSON export with 60%+ smaller file size
- Lock-free, single-threaded design for simplicity
- Compatible with existing JSON/HTML export APIs
- Modular architecture for easy testing and maintenance
Re-exports§
pub use format::BinaryExportMode;
pub use format::FileHeader;
pub use format::FORMAT_VERSION;
pub use format::MAGIC_BYTES;
pub use html_export::export_binary;
pub use html_export::export_binary_optimized;
pub use html_export::export_binary_to_both;
pub use html_export::export_binary_to_dashboard;
pub use html_export::export_binary_to_html;
pub use html_export::export_binary_to_html_both;
pub use html_export::export_binary_to_html_system;
pub use html_export::export_binary_to_json;
pub use html_export::export_binary_with_config;
pub use html_export::export_binary_with_format;
pub use html_export::show_export_options;
pub use html_export::BinaryOutputFormat;
pub use reader::BinaryReader;
pub use writer::BinaryWriter;
pub use html_converter::*;
Modules§
- format
- Binary file format definitions using simple TLV (Type-Length-Value) structure
- html_
converter - Binary to HTML conversion functionality Converts binary memscope files to HTML reports using clean_dashboard.html template
- html_
export - Binary to HTML export functionality
- reader
- Binary data reader for parsing allocation records from binary files
- writer
- Binary data writer for efficient allocation record serialization
Structs§
- Batch
Processor - Batch processor for efficient record processing
- Batch
Processor Builder - Builder for creating BatchProcessor with custom configuration
- Batch
Processor Config - Configuration for batch processing behavior
- Batch
Processor Stats - Statistics about batch processing performance
- Binary
Allocation Data - Binary allocation data structure for direct HTML processing
- Binary
Export Config - Binary export configuration with advanced metrics support
- Binary
Export Config Builder - Builder pattern for BinaryExportConfig
- Binary
File Info - Binary file type information
- Binary
Html Export Config - Configuration for binary to HTML export operations
- Binary
Html Export Stats - Statistics for binary to HTML export operations
- Binary
Html Stats - Statistics for binary HTML write operations
- Binary
Html Writer - Binary HTML writer for direct conversion from binary data to HTML
- Binary
Html Writer Config - Configuration for the binary HTML writer
- Binary
Index - Main binary file index containing all metadata needed for fast access
- Binary
Index Builder - Builder for creating binary file indexes
- Binary
Parser - Binary parser for optimized file conversion
- Binary
Template Data - Binary template data structure for HTML generation
- Binary
Template Engine - Binary template engine for processing binary-specific templates
- Binary
Template Engine Config - Configuration for the binary template engine
- Binary
Template Engine Stats - Statistics for binary template engine performance
- Cache
Entry - Cache entry metadata for tracking cache validity and usage
- Cache
Stats - Statistics about cache performance
- Categorized
Types - Types categorized by their complexity characteristics
- Compact
Allocation Index - Compact allocation index using relative offsets and compressed data
- Complex
Type Analysis - Complex type analysis results for dashboard display
- Complex
Type Analyzer - Complex type analyzer for processing allocation data
- Complex
Type Summary - Summary statistics for complex type analysis
- Dashboard
Export Stats - Dashboard export statistics
- Dashboard
Options - Unified dashboard export options
- Error
Recovery Manager - Simplified error recovery manager
- Error
Report - Error report summary
- Error
Statistics - Error statistics for basic trend analysis
- FfiCall
Graph - FFI call graph for visualization
- FfiHotspot
- FFI hotspot information
- FfiSafety
Analysis - FFI safety analysis results for dashboard display
- FfiSafety
Analyzer - FFI safety analyzer for processing allocation data
- FfiSafety
Summary - Summary statistics for FFI safety analysis
- Field
Parser - Selective field parser that can parse only requested fields
- Field
Parser Config - Configuration for field parsing behavior
- Field
Parser Stats - Statistics about field parsing performance
- Filter
Engine - Multi-level filtering engine for efficient record filtering
- Filter
Engine Builder - Builder for creating FilterEngine with custom configuration
- Filter
Optimizer - Utility functions for filter optimization
- Filter
Stats - Statistics about filtering performance
- Generic
Instantiation - Information about a generic type instantiation
- Generic
Type Analysis - Generic type analysis results
- Graph
Edge - Edge in the relationship graph
- Graph
Node - Node in the relationship graph
- Index
Cache - Index cache manager with LRU eviction and intelligent validation
- Index
Cache Config - Configuration for the index cache
- Optimized
Record - Optimized record structure with pre-formatted fields
- Partial
Allocation Info - Partial allocation information with only requested fields
- Quick
Filter Data - Quick filtering data for large files to enable fast pre-filtering
- Record
Batch - Batch of records to be processed together
- Record
Metadata - Record metadata used during index building
- Recovery
Config - Recovery configuration
- Recovery
Result - Recovery attempt result
- Relationship
Graph - D3.js compatible graph structure
- Resource
Config - Resource embedding configuration
- Risk
Assessment - Risk assessment by different categories
- Selective
Json Export Config - Configuration for selective JSON export operations
- Selective
Json Export Config Builder - Builder for selective JSON export configuration
- Selective
Json Export Stats - Statistics for selective JSON export operations
- Selective
Json Exporter - Selective JSON exporter with integrated optimization components
- Selective
Read Options - Configuration options for selective reading operations
- Selective
Read Options Builder - Builder for creating SelectiveReadOptions with a fluent API
- Selective
Serialization Options - Options for selective field serialization
- Streaming
Field Processor - Streaming field processor with constant memory usage
- Streaming
Field Processor Config - Configuration for streaming field processor
- Streaming
Field Processor Config Builder - Builder for streaming field processor configuration
- Streaming
Field Processor Stats - Statistics for streaming field processing
- Streaming
Json Stats - Statistics for streaming JSON write operations
- Streaming
Json Writer - Streaming JSON writer optimized for allocation data
- Streaming
Json Writer Config - Configuration for the streaming JSON writer
- Streaming
Json Writer Config Builder - Builder for streaming JSON writer configuration
- Template
Data - Template data structure for placeholder processing
- Template
Resource Manager - Template resource manager for handling CSS/JS resources and placeholders
- Type
Info - Information about a specific type
- Unsafe
Operation - Information about an unsafe operation
- Variable
Relationship Analysis - Variable relationship analysis results for dashboard display
- Variable
Relationship Analyzer - Variable relationship analyzer
Enums§
- Advanced
Metrics Level - Advanced metrics level configuration
- Allocation
Field - Enumeration of all possible allocation fields that can be selectively read
- Allocation
Filter - Filter conditions that can be applied during selective reading
- Analysis
Type - Analysis types that can be included/excluded
- Binary
Export Error - Binary export error types
- Dashboard
Format - Dashboard export format options
- Data
Scope - Data scope for export
- Error
Trend - Error trend analysis
- Node
Category - Node category for visualization grouping
- Optimization
Level - Optimization levels for automatic field selection
- Ownership
Status - Ownership status of a variable
- Performance
Mode - Performance mode for analysis
- Processing
Strategy - Processing strategy used for binary to HTML conversion
- Recovery
Strategy - Recovery strategies
- Relationship
Type - Type of relationship between variables
- Risk
Level - Risk level enumeration
- Sort
Field - Fields that can be used for sorting results
- Sort
Order - Sort order for results
- Type
Category - Type category enumeration
- Unsafe
Operation Type - Type of unsafe operation
Traits§
- Placeholder
Processor - Trait for processing template placeholders
Functions§
- create_
template_ data - Utility function to create template data from binary analysis results
- detect_
binary_ type - Automatically detect binary file type and characteristics
- export_
binary_ to_ html_ dashboard - Automatically choose the optimal parsing strategy based on binary type
- export_
to_ binary - Export allocation information to binary format with default configuration
- export_
to_ binary_ with_ config - Export allocation information to binary format with custom configuration
- export_
to_ binary_ with_ mode - Export allocation information to binary format with enhanced header
- get_
recommended_ config - Get recommended configuration for a specific file
- parse_
binary_ auto - Example
- parse_
binary_ to_ html - Convert binary file to HTML format
- parse_
binary_ to_ html_ auto - Auto-detect optimal conversion strategy and execute
- parse_
binary_ to_ html_ direct - High-performance binary to HTML direct conversion
- parse_
binary_ to_ html_ with_ config - Binary to HTML conversion with custom configuration
- parse_
binary_ to_ json - Convert binary file to JSON format