Skip to content

Node and workflow profiling. Find bottlenecks in your workflows. See trends over time.

License

Notifications You must be signed in to change notification settings

OctAg0nO/ComfyUI_ProfilerX

 
 

Repository files navigation

ComfyUI ProfilerX

A performance profiling suite for ComfyUI that automatically tracks execution time, memory usage, and cache performance of your workflows.

Features

  • 🔄 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

Requirements

  • ComfyUI (latest version)
  • Python 3.8+
  • CUDA-capable GPU (for VRAM monitoring)
  • Modern web browser

Installation

Option 1: ComfyUI Manager (Recommended)

  1. Install ComfyUI Manager
  2. Use the Manager's interface to install "ComfyUI ProfilerX"
  3. Restart ComfyUI

Option 2: Manual Installation

  1. Clone this repository into your custom_nodes directory:
cd ComfyUI/custom_nodes
git clone https://github.com/ryanontheinside/ComfyUI_ProfilerX
  1. Install the required Python package:
cd ComfyUI_ProfilerX
pip install -r requirements.txt
  1. Restart ComfyUI

Usage

The profiler integrates directly into ComfyUI's interface:

  1. After installation, you'll see a new performance monitoring panel in the top-right corner
  2. Run your workflows as normal
  3. 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
ProfilerX Interface

The profiler runs automatically in the background, collecting data for every workflow execution. No additional configuration is needed.

Features in Detail

Real-time Monitoring

  • Live execution time tracking
  • Memory usage graphs (VRAM and RAM)
  • Cache hit/miss counters
  • Node-by-node progress tracking

Analytics Dashboard

  • Historical performance trends
  • Node execution time breakdown
  • Memory usage patterns
  • Cache efficiency analysis
  • Time-range filtering
  • Sortable performance tables

Data Management

  • Automatic history tracking
  • Data persistence between sessions
  • Archive management
  • Export capabilities

How it Works

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 and psutil 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

Other Projects by RyanOnTheInside

Check out my other ComfyUI custom nodes:

Contributing

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.

License

MIT License - feel free to use this in your own projects!

About

Node and workflow profiling. Find bottlenecks in your workflows. See trends over time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 41.6%
  • JavaScript 38.4%
  • Python 20.0%