Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Conversation

cyriltovena
Copy link
Collaborator

This fixes the computation of delta profiles. We were assuming that only one sample per stacktraces is passed to the delta function.

However this wasn't true, after ingesting symbols we can endup with the same stacktraces in different samples.

This PR makes sure that before computing the samples we sanitize the input.

I've also included couple of fixes to avoid retaining the memory here and there and combine with correct delta this has drastically improve performance of ingester.

This is the result in a busy cluster.

image

Copy link
Collaborator

@simonswine simonswine left a comment

Choose a reason for hiding this comment

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

Great work going to the bottom of this

:LGTM:

@cyriltovena cyriltovena enabled auto-merge (squash) March 23, 2023 13:15
@cyriltovena cyriltovena merged commit 3b4ac22 into main Mar 23, 2023
@cyriltovena cyriltovena deleted the fix-delta-computation branch March 23, 2023 13:25
simonswine pushed a commit to simonswine/pyroscope that referenced this pull request Jun 30, 2023
* Fixes delta of samples computation

* ignore wrong lint error

* Review feedback
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants