Skip to content

Instantly share code, notes, and snippets.

@luisadha
Created December 17, 2022 05:38
Show Gist options
  • Save luisadha/3e7a90169feb3e54d176013d75075394 to your computer and use it in GitHub Desktop.
Save luisadha/3e7a90169feb3e54d176013d75075394 to your computer and use it in GitHub Desktop.
local CHECK_GPU=$(su -c dumpsys SurfaceFlinger | awk '/GLES: / { print $3 $4}' )
CHECK_GPU=${CHECK_GPU-'FAIL'}
local CHECK_CPU=$(if [ "$(getprop|grep ro.product.board)" != "$(cat /proc/cpuinfo|grep Hardware)" ]; then echo $(getprop ro.product.board); else echo $(cat /proc/cpuinfo|grep Hardware); fi)
local CHECK_MEM=$(echo "$(free -m | xargs | awk '{print "" $17 "/" $8 " MB"}') ")
echo ""
echo -e "${G} %=,_ _,=%${D}"
echo -e "${G} ,\*?&&&&&&&&&&?*/, \tTERM: $TERM"
echo -e "${G} &&&&&${R}*${G}&&&&&&&${R}*${G}&&&& ${D}\tSHELL: $SHELL"
echo -e "${G} &&&&&&&&&&&&&&&&&&&&${D} \tCPU: $CHECK_CPU "
echo -e "${G} &&&&&&&&&&&&&&&&&&&&${D} \tGPU: $CHECK_GPU "
echo -e "${G} &&&&&&&&&&&&&&&&&&&&${D} \tMEM: $CHECK_MEM "
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment