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).

Mojo package

profiling_range

Provides Mojo wrappers for MAX's libkineto-backed range profiler.

Provides the Range context manager and the is_enabled() query for instrumenting GPU and CPU code with named activity spans visible in profiling tools such as Nsight and the Kineto-based trace viewer.

from profiling_range import Range

with Range("my_span"):
    ...  # work to profile

The package is named profiling_range to avoid shadowing Mojo's built-in range() iterator.

Modules

  • range: Mojo Range context manager for libkineto activity spans.