torch.profiler
Functions
- profile - High-level context manager for profiling code.
- record_function - Records a synchronous function execution in the active profiler.
- record_function_async - Records an asynchronous function execution with GPU synchronization.
KinetoStep
- key_averages - Groups events by input shape for more detailed analysis.
- table - Prints a formatted table of profiling statistics.
Profiler
- start - Starts profiling, clearing any previous events.
- stop - Stops profiling and synchronizes with the GPU device.
- get_events - Returns all recorded profiling events.
- key_averages - Returns aggregated statistics grouped by operation name.
Types
- ProfilerOptions - Configuration options for the Profiler.
- ProfilerEvent - A single profiling event recording operation execution.
- KeyAveragesOptions - Options for key_averages.