IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

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.