mirror of
https://github.com/vladmandic/automatic
synced 2026-08-25 22:20:46 +02:00
Page:
Profiling
Pages
AMD MIOpen
AMD ROCm
API
Advanced Install
Benchmark
CHANGELOG
CLI Arguments
CLI Tools
CLiP Skip
Caption
Control HowTo
Control Settings
Control Technical
Debug
Detailer
Dev AICoding
Dev Docs
Dev Extensions
Dev GettingStarted
Dev Hints
Dev Home
Dev Locale
Dev SelfStart
Dev Structure
Dev Theme
Dev UI
DirectML
Docker
Enso
FAQ
FLUX
Features
FramePack
Gated
Getting Started
Google GenAI
HiDream
Home
Hotkeys
HuggingFace
IPAdapter
Ideogram
Installation
Intel ARC
Kanvas
LTX
Launcher
LoRA Technical
LoRA
Loader
MacOS Python
Malloc
MiniMax
Model Loading
Model Support
Models Tab
Models
Networks Search
Networks
Notes
NudeNet
Nunchaku
ONNX Runtime
Offload
OpenVINO
Outpaint
Parameters
Performance Timers
Performance Tuning
Platforms
Process
Profiling
Prompt Enhance
Prompting
Python
Quantization
Reprocess
SD Pipeline How it Works
SD Training Methods
SD XL
SD3
SDNQ Quantization
Schedulers
Scripts
Stability Matrix
Stable Cascade
Styles
Themes
Troubleshooting
Update
Using LCM
VAE
Video
WSL
Wildcards
XYZ Grid
ZLUDA
_ToDo
index
nVidia
Clone
3
Profiling
Vladimir Mandic edited this page 2026-05-13 12:33:44 +02:00
Profiling
SD.Next has built-in support for both Python and Torch profiling.
You can start profiling for the full session with the --profile command line flag.
You can also start and stop profiling on demand from UI -> System -> Start/Stop profiling.
When profiling is enabled, analysis runs:
- at the end of server startup, to identify startup bottlenecks
- at the end of each generation workflow
Warning
Collecting profile information may take significant resources and time
Saving
You can save a full torch profiling dump for external analysis by setting an environment variable with the output path:
SD_PROFILE_FOLDER=/tmp/profile
Each profiling run creates a JSON file in the specified folder. You can open it in tools such as:
Warning
Each profile trace file is over 100MB in size
Advanced
You can increase profiling detail with additional environment variables:
SD_PROFILE_STACK=true: enable torch stack informationSD_PROFILE_FLOPS=true: enable torch flops calculationsSD_PROFILE_SHAPES=true: group torch profile information per each shape