# Verify GPU usage Source: [https://docs.qualcomm.com/doc/80-88500-3/topic/12_Check_GPU_usage.html](https://docs.qualcomm.com/doc/80-88500-3/topic/12_Check_GPU_usage.html) Use the following script to verify the GPU usage. Save the busy script as Perl script. #!/usr/bin/perl -w `adb shell mount -t debugfs none /sys/kernel/debug`; while(1) { $oxili_gfx3d_clk_measure = `adb shell cat "/sys/kernel/debug/clk/ gpu_cc_gx_gmu_clk/clk_rate"`; chomp $oxili_gfx3d_clk_measure; $bmc_clk_rate = `adb shell cat "/sys/kernel/debug/clk/bimc_qmp_clk/clk_rate"`; chomp $bmc_clk_rate; #$mmfab_clk_rate = `adb shell cat "/sys/kernel/debug/clk/ measure_only_memnoc_clk/clk_measure"`; #chomp $mmfab_clk_rate; $afab_clk_rate = `adb shell cat "sys/kernel/debug/clk/ measure_only_snoc_clk/clk_rate"`; chomp $afab_clk_rate; $cpu0 = `adb shell "cat /sys/devices/system/cpu/cpu0/cpufreq/ scaling_cur_freq"`; chomp $cpu0; $cpu1 = `adb shell "cat /sys/devices/system/cpu/cpu1/cpufreq/ scaling_cur_freq"`; chomp $cpu1; $cpu2 = `adb shell "cat /sys/devices/system/cpu/cpu2/cpufreq/ scaling_cur_freq"`; chomp $cpu2; $cpu3 = `adb shell "cat /sys/devices/system/cpu/cpu3/cpufreq/ scaling_cur_freq"`; chomp $cpu3; $text = sprintf("GPU %u BMIC %u AFAB %u", $oxili_gfx3d_clk_measure,$bmc_clk_rate, $afab_clk_rate); print "$text\n"; $text = sprintf("CPU0 %u CPU1 %u CPU2 %u CPU3 %u", $cpu0, $cpu1, $cpu2, $cpu3); #$text = sprintf("CPU0 %u CPU1 %u", $cpu0, $cpu1); print "$text\n"; &busy; print "\n"; sleep 1 ; } sub busy { $gpu3d = `adb shell cat /sys/class/kgsl/kgsl-3d0/gpubusy`; $pct = 0.0; if( $gpu3d =~ m/\s*(\d+)\s+(\d+)/) { if( $1 > 0 && $2 > 0 ) { $pct = $1 / $2 * 100; } printf("3D GPU Busy: %5.2f\n", $pct); } } Copy to clipboard **Parent Topic:** [Configure graphics settings](https://docs.qualcomm.com/doc/80-88500-3/topic/9_Configure_graphics_settings.html) Last Published: Sep 26, 2023 [Previous Topic Validate OpenGL](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/11_Validate_OpenGL.md) [Next Topic Configure USB camera with Yavta](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/15_Build_Yavta.md)