-
Notifications
You must be signed in to change notification settings - Fork 141
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
Frameboundary2 #1179
Frameboundary2 #1179
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.
lgtm, please submit after reviewing the commented change requests.
cmd/gapit/flags.go
Outdated
@@ -322,6 +322,7 @@ type ( | |||
Capture struct { | |||
Frames int `help:"only capture the given number of frames. 0 for all"` | |||
} | |||
RespectAndroidFrameBoundary bool `help:"If true: respect the ANDROID_frame_boundary extension. If false: ignore."` |
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 we rename this to IgnoreFrameBoundaryExtension and change the default value, hint text and behaviour accordingly?
gapii/client/capture.go
Outdated
@@ -52,6 +52,9 @@ const ( | |||
DisableCoherentMemoryTracker Flags = 0x000000100 | |||
// WaitForDebugger makes gapii wait for a debugger to connect | |||
WaitForDebugger Flags = 0x000000200 | |||
// FLAG_RESPECT_ANDROID_FRAME_BOUNDARY | |||
RespectFrameBoundaryDelimiters = 0x00001000 |
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 need 'Flags' suffix here ?
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.
Apparently not, but good catch. Added
* Hide ANDROID_frame_boundary behind a flag / UI checkbox * Generalise the name of frame boundary delimiters * Change name "respect" to "ignore" and invert meaning * Change flag meaning to respect vkQueuePresent xor ANDROID_frame_boundary * fix presubmit
Supersedes #1168
This PR hides support for ANDROID_frame_boundary behind a flag, and exposes that flag as a checkbox in the Trace UI dialog