Develop
Develop
Select your platform

Track GPU Memory Usage with gpumeminfo

Gpumeminfo is a performance monitoring CLI tool for Meta Quest headsets that is used to track GPU memory usage on a process. Gpumeminfo provides a more in-depth view of graphics memory than dumpsys meminfo. Gpumeminfo is included with the Meta Quest runtime and does not need to be manually installed.

Use gpumeminfo to Track GPU Memory Usage on a Process

You can use gpumeminfo to track the GPU memory usage on a process with the following command:
adb shell gpumeminfo -p $(pidof <process-name>)
To find the process ID (PID), use the following command:
adb shell gpumeminfo -p l
gpumeminfo will continuously run and print the list of allocations and sizes in MB. The output for this command looks like the following:
gpumeminfo output

Command-Line Argument Reference

The following are the recommended command-line arguments available for use with gpumeminfo:
ArgumentDescription
-h
Prints help message.
-m
Prints the memory information in machine-readable format.
-o
Prints the memory information once and exits.
-p
Specifies which application to attach to.
-s
“Specifies the interval
-d
Dump system overall statistics.
-l
Lists GPU memory statistics of all running processes.
-t
Sort the list with memory usage type in the following order: any(0), arraybuffer, cl, cl_image_nomap, cl_kernel_stack, command, egl_image, egl_surface, gl, texture, vk_cmdbuffer, vk_devicememory.

See Also

Did you find this page helpful?
Thumbs up icon
Thumbs down icon