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

Late jsonify with complete output #2

Merged
merged 3 commits into from Feb 14, 2019
Merged

Conversation

wiltzius
Copy link
Contributor

  • Run the JSON dumps in the writer thread rather than in the profiling thread. In my anecdotal example this increases overall profiled script runtime performance by ~30%

  • Don't stop the writer thread until it's been signaled and the queue is empty. Otherwise output may be truncated prematurely. This is the source of the "Did not finish" events, as well as some that are just missing.

  • Ensure the output is valid JSON in the test

@wiltzius wiltzius mentioned this pull request Feb 14, 2019
Copy link
Owner

@kwlzn kwlzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. thanks for the PR!

@kwlzn kwlzn merged commit 525ad21 into kwlzn:master Feb 14, 2019
@kwlzn kwlzn mentioned this pull request Feb 14, 2019
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.

None yet

2 participants