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

Fix subprocess sampling #265

Merged
merged 1 commit into from
Jun 15, 2020
Merged

Fix subprocess sampling #265

merged 1 commit into from
Jun 15, 2020

Conversation

benfred
Copy link
Owner

@benfred benfred commented Jun 15, 2020

In certain cases subprocess sampling was failing. This was related to the process
info map we were sending back with the samples. When a process exitted we
cleaned up the information about the process from the map, but in another thread
was accessing to display the process hierarchy.

Fix by not returning the process info map to the caller, and instead return a
linked list of process information (that is immutable and ref counted) with
each sample.

In certain cases subprocess sampling was failing. This was related to the process
info map we were sending back with the samples. When a process exitted we
cleaned up the information about the process from the map, but in another thread
was accessing to display the process hierarchy.

Fix by not returning the process info map to the caller, and instead return a
linked list of process information (that is immutable and ref counted) with
each sample.
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.

1 participant