Skip to content

Instantly share code, notes, and snippets.

@AndroPlus-org
Last active July 21, 2023 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndroPlus-org/149f1473428a9dde8d63ddf59ba1122e to your computer and use it in GitHub Desktop.
Save AndroPlus-org/149f1473428a9dde8d63ddf59ba1122e to your computer and use it in GitHub Desktop.
Show FPS on OnePlus 7 Pro
#!/bin/bash
# Example of the case where you want to get 50 repetitions
max=50
for ((i=0; i < $max; i++)); do
adb shell su -c "cat /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/sde-crtc-0/measured_fps"
echo -n -e "\n"
done
@AndroPlus-org
Copy link
Author

Use this command to search path:
find /sys 2> /dev/null -iname "measured_fps" -type f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment