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

Support for taking a Perfetto trace in GAPIS #2709

Merged
merged 5 commits into from
Apr 10, 2019

Conversation

pmuetschard
Copy link
Member

Also includes the fixes asked for in #2696, which I accidentally dropped in excitement when the build finally went green.

- 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.
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"
Copy link
Contributor

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.

Copy link
Member Author

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

@AWoloszyn
Copy link
Contributor

Awesome thanks!

@pmuetschard pmuetschard merged commit 62d40cf into google:master Apr 10, 2019
@pmuetschard pmuetschard deleted the perfetto_trace branch April 10, 2019 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants