Repository navigation
feat: report the GPU usage of Samsung Galaxy phones - #671
Merged
Merged
Conversation
Exynos Galaxy phones (Mali, or Xclipse on newer ones) expose the GPU
usage in percent through Samsung's /sys/kernel/gpu/gpu_busy ("12 %"),
readable from adb shell, and the model in gpu_model. When neither
nvidia-smi nor the Adreno files are there, these are read; the shared
GPU memory comes from dumpsys gpu as for Adreno, which works for any
GPU.
The Adreno code moves into a mobile module with the Samsung reader.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WPa4N5jsG2gZ7yW3FiM2KN
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Galaxy(Exynos:Mali、新しい機種は Xclipse)の GPU 使用率を読むようにした。
/sys/kernel/gpu/gpu_busy:使用率が%で入っている(12 %など)。adb shell の権限で読めるgpu_modelから。読めなければ「GPU」12 %・12%・12、小数も)dumpsys gpu --gpumemから(GPU の種類に関係なく使える)mobileモジュールにまとめた確認
cargo clippy(pedantic)は警告 0、cargo testは 15 件通過(%の読み取りのテストを追加)🤖 Generated with Claude Code