mix raxol.perf (Raxol v2.3.0)

View Source

Performance analysis and optimization tools for development.

This task provides various performance analysis capabilities:

Commands

mix raxol.perf analyze           # Analyze current performance
mix raxol.perf profile <module>  # Profile a specific module
mix raxol.perf hints             # Show performance hints
mix raxol.perf monitor           # Start continuous monitoring
mix raxol.perf memory            # Memory usage analysis
mix raxol.perf report            # Generate performance report
mix raxol.flamegraph <module>    # Generate flame graph SVG
mix raxol.bench.advanced         # Advanced benchmarking suite

Options

  • --format, -f - Output format: text, html, json (default: text)
  • --interval, -i - Monitoring interval in seconds (default: 30)
  • --duration, -d - Profiling duration in seconds (default: 10)
  • --memory, -m - Include memory profiling in output
  • --processes, -p - Include process analysis in output
  • --call-graph - Generate call graph visualization (expensive)
  • --help, -h - Show detailed help

Examples

# Quick performance analysis
mix raxol.perf analyze

# Profile terminal operations
mix raxol.perf profile Raxol.Terminal.Buffer

# Profile with memory analysis
mix raxol.perf profile Raxol.Terminal.Buffer --memory

# Start continuous monitoring every 60 seconds
mix raxol.perf monitor --interval 60

# Generate HTML report for 30 seconds
mix raxol.perf report --format html --duration 30

# Memory profiling for 30 seconds
mix raxol.perf memory --duration 30

Summary

Functions

Callback implementation for Mix.Task.run/1.

Functions

run(args)

Callback implementation for Mix.Task.run/1.