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

native_layer: Do a poll during flush to ensure data gets transferred #4

Merged
merged 6 commits into from
Oct 31, 2024

Conversation

dflemstr
Copy link
Collaborator

@dflemstr dflemstr commented Oct 31, 2024

Calling flush doesn't ensure that the data from the Perfetto SDK is actually written to the output writer. This PR makes sure that a poll happens straight after flush, so that we can "guarantee" that the data appears on the output writer.

This includes a breaking change since we add a parameter to flush()

@dflemstr dflemstr force-pushed the dflemstr/poll-on-flush branch from a8e58ce to 9a4c8b8 Compare October 31, 2024 10:34
@dflemstr dflemstr merged commit b87e8ee into main Oct 31, 2024
2 checks passed
@dflemstr dflemstr deleted the dflemstr/poll-on-flush branch October 31, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants