Installation
Install with visualization support:- Matplotlib (static plots)
- Seaborn (styling)
- Plotly (interactive visualizations)
- Pandas (data export)
- NumPy (data processing)
Quick start
Generate visualizations from profiling data:Memory timeline
Visualize memory usage over time:- Interactive (Plotly)
- Static (Matplotlib)
- Custom data
- Hover tooltips with exact values
- Zoom and pan controls
- Operation labels on data points
- Separate allocated vs reserved traces
- Time in seconds from start
Function comparison
Compare memory usage across different functions:Memory heatmap
Create a heatmap showing memory patterns:- Rows: Different functions
- Columns: Metrics
- Execution time
- Memory allocated (GB)
- Memory freed (GB)
- Peak memory (GB)
- Colors: Normalized values (darker = higher)
- Annotations: Actual values on each cell
- Identifying memory-intensive functions
- Comparing memory patterns
- Finding optimization opportunities
Interactive dashboard
Create a comprehensive multi-panel dashboard:- Memory timeline
- Function comparison
- Memory distribution
- Peak vs time scatter
Top-left panel:
- Time series of allocated memory
- Synchronized with other plots
- Hover for exact timestamps
Export data
Export profiling data for external analysis:- CSV export
- JSON export
- From tracker
- function_name
- execution_time
- memory_allocated
- memory_freed
- peak_memory
- memory_diff
- tensors_created
- tensors_deleted
- timestamp
- operation
- allocated_memory
- reserved_memory
- active_memory
- inactive_memory
- device_id
Styling configuration
Customize visualization appearance:viridis(default)deepmutedbrightpasteldarkcolorblind
TensorFlow visualizations
Visualize TensorFlow profiling data:Batch processing
Generate multiple visualizations:Analysis workflows
Memory leak detection
Memory leak detection
Visualize memory growth over time:
Optimization comparison
Optimization comparison
Compare before/after optimization:
Batch size tuning
Batch size tuning
Visualize memory vs batch size:
Next steps
PyTorch guide
Learn PyTorch profiling APIs
TensorFlow guide
Learn TensorFlow profiling APIs
CLI usage
Generate plots from CLI
TUI dashboard
Use the interactive TUI for visualizations