A performance profiling suite for ComfyUI that automatically tracks execution time, memory usage, and cache performance of your workflows.
- 🔄 Real-time monitoring of workflow execution
- 📊 Memory usage tracking (VRAM and RAM)
- ⚡ Node execution time breakdown
- 💾 Cache hit/miss statistics
- 📈 Beautiful, interactive charts and tables
- 🎯 Zero configuration required
- 📱 Responsive UI that integrates with ComfyUI's interface
- 📊 Historical data tracking and analysis
- ⚙️ Time-range filtering for analytics
- 🔍 Sortable performance tables
- ComfyUI (latest version)
- Python 3.8+
- CUDA-capable GPU (for VRAM monitoring)
- Modern web browser
- Install ComfyUI Manager
- Use the Manager's interface to install "ComfyUI ProfilerX"
- Restart ComfyUI
- Clone this repository into your
custom_nodes
directory:
cd ComfyUI/custom_nodes
git clone https://github.com/ryanontheinside/ComfyUI_ProfilerX
- Install the required Python package:
cd ComfyUI_ProfilerX
pip install -r requirements.txt
- Restart ComfyUI
The profiler integrates directly into ComfyUI's interface:
- After installation, you'll see a new performance monitoring panel in the top-right corner
- Run your workflows as normal
- The dashboard will automatically update with:
- Total execution time
- Peak memory usage (VRAM and RAM)
- Cache performance metrics
- Per-node execution time breakdown
- Historical performance trends
The profiler runs automatically in the background, collecting data for every workflow execution. No additional configuration is needed.
- Live execution time tracking
- Memory usage graphs (VRAM and RAM)
- Cache hit/miss counters
- Node-by-node progress tracking
- Historical performance trends
- Node execution time breakdown
- Memory usage patterns
- Cache efficiency analysis
- Time-range filtering
- Sortable performance tables
- Automatic history tracking
- Data persistence between sessions
- Archive management
- Export capabilities
ProfilerX integrates directly with ComfyUI's execution system to collect performance metrics:
- Execution time is measured for both individual nodes and the entire workflow
- Memory usage is tracked using
torch.cuda
for VRAM andpsutil
for RAM - Cache performance is monitored by intercepting ComfyUI's caching system
- All data is collected automatically with minimal performance impact
- Historical data is stored locally for trend analysis
Check out my other ComfyUI custom nodes:
- ComfyUI_RyanOnTheInside - Everything Reactivity
- ComfyUI_RealTimeNodes - Real-Time ComfyUI Use Cases
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
MIT License - feel free to use this in your own projects!