-
Notifications
You must be signed in to change notification settings - Fork 170
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
Tracy GPU profiling #1134
base: master
Are you sure you want to change the base?
Tracy GPU profiling #1134
Conversation
7f8314e
to
c2cdc09
Compare
c2cdc09
to
f8476b4
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #1134 +/- ##
==========================================
- Coverage 22.88% 22.87% -0.02%
==========================================
Files 143 143
Lines 23050 23051 +1
==========================================
- Hits 5275 5272 -3
- Misses 17775 17779 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
f8476b4
to
9bf018c
Compare
Are there any other profilers one might use with similar GPU profiling instrumentation? If so, a trait abstracting them makes sense. If not, just having an optional tracy dependency might make sense. Would it be reasonable to have a trait method of |
|
||
let context = client | ||
.new_gpu_context( | ||
Some("GlesRenderer"), |
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.
When the compositor is used with multiple GPUs, this should probably have different names. Maybe the drm node, though vendor and driver can also be queried through EGL.
|
||
impl Drop for EnteredGpuTracepoint { | ||
fn drop(&mut self) { | ||
debug_assert!(self.span.is_none()); |
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.
Doing things this way clashes with the use of ?
for error handling; it will panic if ?
prevents it from getting to the exit
call.
Not sure what to do about this.
9bf018c
to
2228b12
Compare
PR for showcasing tracy gpu profiling
TODO
wait for release of profiling (bump tracy-client to 0.16.2 aclysma/profiling#56)profiling1.0.11
has been released which includes tracy-client1.16.2
Example: