Skip to content

Commit

Permalink
re-introduce merge intervals
Browse files Browse the repository at this point in the history
during some refactoring to resolve conflicts with the main branch this
was left out. Fixing it here.
  • Loading branch information
viglia committed Sep 11, 2024
1 parent f0a14d5 commit 214264c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/flamegraph/flamegraph.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,8 @@ func GetFlamegraphFromCandidates(

for tid, callTree := range result.CallTrees {
if intervals, ok := result.Intervals[tid]; ok {
for _, interval := range intervals {
sortedAndMergedIntervals := mergeIntervals(&intervals)
for _, interval := range sortedAndMergedIntervals {
intervalExample := utils.NewExampleFromProfilerChunk(
result.Chunk.ProjectID,
result.Chunk.ProfilerID,
Expand Down

0 comments on commit 214264c

Please sign in to comment.