Skip to main content

Python class

GPUStats

GPUStats

class max.profiler.gpu.GPUStats(memory, utilization, clocks=None)

source

Bases: Struct

GPU state snapshot: memory, utilization, and clock metrics.

This class provides a complete view of a GPU’s current state, including detailed memory usage statistics, utilization percentages, and current clock rates. It serves as the primary data structure returned by GPU diagnostic queries.

Parameters:

clocks

clocks: ClockStats | None

source

Current and maximum clock rates plus throttle reasons, if available.

memory

memory: MemoryStats

source

Detailed memory usage statistics for the GPU.

utilization

utilization: UtilizationStats

source

Current GPU compute and memory utilization percentages.