-
-
Notifications
You must be signed in to change notification settings - Fork 192
feat: Implement the GPU Info gathering within the Native SDK #1336
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
base: master
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just skimmed things but seems great so far!
README.md
Outdated
Enables GPU information collection and reporting. When enabled, the SDK will attempt to gather GPU details such as | ||
GPU name, vendor, memory size, and driver version, which are included in event contexts. The implementation uses | ||
platform-specific APIs: DXGI and Direct3D9 on Windows, IOKit on macOS, and PCI/DRM on Linux. Setting this to | ||
`OFF` disables GPU information collection entirely, which can reduce dependencies and binary size. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we intend to turn this on by default at some point? Might be worth adding a note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rewrote it a bit, so now it will be enabled by default on all platforms that have required libraries that we can link against (DirectX, IOKit, etc. depending on the platform).
src/gpu/sentry_gpu_common.c
Outdated
case 0x126F: | ||
return sentry__string_clone("Silicon Motion"); | ||
default: | ||
return sentry__string_clone("Unknown"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about something like this so we can look at those by usage and expand?
return sentry__string_clone("Unknown"); | |
return sentry__string_clone("Unknown - " + vendor_id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea! Added it.
src/gpu/sentry_gpu_unix.c
Outdated
continue; | ||
} | ||
|
||
char name_path[512]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"can't ever big bigger" famous last words :)
But if it is, just truncates and then we can't find the path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using MAX_PATH now ;) Nice catch
Uh oh!
There was an error while loading. Please reload this page.