Skip to content

feat(events): GPU interface #10162

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

Merged
merged 9 commits into from
Oct 18, 2018
Merged

feat(events): GPU interface #10162

merged 9 commits into from
Oct 18, 2018

Conversation

bruno-garcia
Copy link
Member

@bruno-garcia bruno-garcia commented Oct 17, 2018

Examples:

image

image

image

image

Although the Unity API is called SystemInfo.graphicsDeviceVendor it seems to return the driver vendor instead.
The SystemInfo.graphicsDeviceName API returns in a single string what we would expect to be vendor, name and version.

The plan is to let the data come in and once we have a enough sample, write the normalization code to better display this.

Note that GPU context was added with the smallest priority:

https://github.com/getsentry/sentry/pull/10162/files#diff-af6a04783ec9ae8b4cff8f0437a50e46R240

This is relevant because in case an event came in with user, runtime, os and device, GPU wouldn't be visible.

@bruno-garcia bruno-garcia requested a review from HazAT October 17, 2018 09:45
@bruno-garcia bruno-garcia force-pushed the feature/gpu-context-inf branch from 8db450b to 6eb6f0b Compare October 17, 2018 10:32
@bruno-garcia bruno-garcia changed the title WIP GPU interface GPU interface Oct 17, 2018
bruno-garcia added a commit to getsentry/sentry-unity that referenced this pull request Oct 17, 2018
Copy link
Contributor

@mitsuhiko mitsuhiko left a comment

Choose a reason for hiding this comment

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

Lgtm but nvidia logo seems streched

@bruno-garcia
Copy link
Member Author

@mitsuhiko you are right. Although fixed still looks a bit odd:

image

knownData.unshift(['?Vendor Id', vendor_id]);
}

if (id > 0) {
Copy link
Member

Choose a reason for hiding this comment

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

This condition could be combined with the one above it.

Copy link
Member Author

Choose a reason for hiding this comment

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

You just caught a bug there! I should be checking for: vendor_id .
This is due to Unity serialization not handling int?, so type is not nullable and 0 will be sent :
It will be the case until we get away from Unity.JsonUtility

@bruno-garcia bruno-garcia merged commit 8055560 into master Oct 18, 2018
@bruno-garcia bruno-garcia deleted the feature/gpu-context-inf branch October 18, 2018 11:15
@bruno-garcia bruno-garcia changed the title GPU interface feat(events): GPU interface Oct 18, 2018
@bruno-garcia bruno-garcia self-assigned this Oct 18, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants