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: memory allocation events should only be sent attached to function calls #48

Merged
merged 3 commits into from
Jul 28, 2023

Conversation

nilslice
Copy link
Member

I think the allocation should only ever be recorded as part of a function call event, not standlone. In the case prior to this commit, we actually collect the allocation as part of the function call (e.g. sbrk) and also on its own, sent the allocation event along.

@nilslice nilslice requested a review from bhelx July 24, 2023 20:30
Comment on lines -107 to -109
if let Err(e) = self.collector.try_send(ev) {
error!("error recording memory allocation: {}", e);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm yeah, this seems like it might have been leftover from the refactor. Let me test it tomorrow to make sure.

Copy link
Contributor

@bhelx bhelx left a comment

Choose a reason for hiding this comment

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

This looks correct. Tested locally. Unsure why tests are failing but merge when ready.

@nilslice nilslice merged commit abf1223 into main Jul 28, 2023
2 checks passed
@nilslice nilslice deleted the alloc-question branch July 28, 2023 17:46
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