-
Notifications
You must be signed in to change notification settings - Fork 328
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
Support for taking a Perfetto trace in GAPIS #2709
Conversation
- drop the magic window size constant and simply use Perfetto's default. - Remove a TODO comment
This lays the foundation to support taking multiple kinds of traces. Clients should query the server for what types of traces are supported. Currently GAPIS only returns the Graphics trace type.
3d8bc1c
to
50e3554
Compare
gapis/perfetto/trace.go
Outdated
const ( | ||
// perfettoTraceFile is the location on the device where we'll ask Perfetto | ||
// to store the trace data while tracing. | ||
perfettoTraceFile = "/data/misc/perfetto-traces/gapis-trace" |
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.
This should probably be attached to the device. Especially if we want to be able to take perfetto traces elsewhere.
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've moved this into an android
subdirectory. PTAL
And allow the UI (hidden via a flag) to take a Perfetto trace.
50e3554
to
d9f1149
Compare
Awesome thanks! |
Also includes the fixes asked for in #2696, which I accidentally dropped in excitement when the build finally went green.