Skip to content

Commit

Permalink
[perforator] Set correct sample type for pprof profile flamegraph
Browse files Browse the repository at this point in the history
commit_hash:8bf5a6fbcfa3e9b0f856e634d870729bc223f816
  • Loading branch information
BigRedEye committed Feb 9, 2025
1 parent 7fde390 commit dee3979
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions perforator/pkg/profile/flamegraph/render/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ func (f *FlameGraph) addProfile(p *profile.Profile, baseline bool) {
sampleIndex = i
}
}
f.SetSampleType(p.SampleType[sampleIndex].Unit)

for _, sample := range p.Sample {
procinfo := labels.ExtractProcessInfo(sample)
Expand Down

0 comments on commit dee3979

Please sign in to comment.