-
Notifications
You must be signed in to change notification settings - Fork 239
Add profiling manager snippets for how-to-capture DAC docs #564
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
base: main
Are you sure you want to change the base?
Add profiling manager snippets for how-to-capture DAC docs #564
Conversation
Here is the summary of changes. You are about to add 2 region tags.
This comment is generated by snippet-bot.
|
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.
Looks good, added some nits
// Computations you want to profile | ||
} | ||
|
||
void sampleRecordSystemTrace() { |
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.
should we just start the code snippet right before this function?
super.onCreate(savedInstanceState) | ||
sampleRecordSystemTrace() | ||
} | ||
|
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.
same q around just showing the function
SystemTraceRequestBuilder requestBuilder = new SystemTraceRequestBuilder(); | ||
requestBuilder.setCancellationSignal(stopSignal); | ||
requestBuilder.setTag("FOO"); | ||
requestBuilder.setDurationMs(60000); |
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 pull this into duration const
requestBuilder.setCancellationSignal(stopSignal) | ||
requestBuilder.setTag("FOO") // Caller supplied tag for identification | ||
requestBuilder.setDurationMs(60000) | ||
requestBuilder.setBufferFillPolicy(BufferFillPolicy.RING_BUFFER) |
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 share what the other options are in a comment?
Adding some snippets required for the upcoming Profiling Manager sections for DAC documents