Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpu_usage: Initial import of script to read gpu usage debugfs info #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

popcornmix
Copy link
Contributor

Shows gpu usage as reported by the v3d driver.
Works on pi4 and pi5 (earlier models don't expose this info)

This provides a little more detail than the GPU taskbar plugin (which just reports the maximum of the different fields).

with open('/sys/kernel/debug/dri/0/gpu_usage') as f:
lines = f.readlines()
except:
print("gpu_uage is not supported on this device")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo - should be 'gpu_usage' instead of 'gpu_uage'

Shows gpu usage as reported by the v3d driver
Works on pi4 and pi5 (earlier models don't expose this info)

This provides a little more detail than the GPU taskbar plugin
(which just reports the maximum of the different fields).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants