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

Fixes no profiles to merge error #559

Merged
merged 2 commits into from
Mar 8, 2023
Merged

Conversation

cyriltovena
Copy link
Collaborator

Fixes #557

This was happening when the timerange was returning no queriers.

Also changed the TimeNanos to be from the end not the start.

@cyriltovena cyriltovena requested a review from simonswine March 6, 2023 09:24
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.

LGTM

p.DefaultSampleType = ty.SampleType
p.PeriodType = &profile.ValueType{Type: ty.PeriodType, Unit: ty.PeriodUnit}
switch ty.Name {
case "process_cpu": // todo: this should support other types of cpu profiles
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we create an issue for that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@cyriltovena cyriltovena merged commit 006ad25 into main Mar 8, 2023
@cyriltovena cyriltovena deleted the fixes-no-profiles-merge branch March 8, 2023 13:01
simonswine pushed a commit to simonswine/pyroscope that referenced this pull request Jun 30, 2023
* Fixes no profiles to merge error.

* Fixes tests comparing timestamp
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.

Error when no profile found to merge
2 participants