grafana / grafana/pyroscope

Malformed flame graph when importing delta heap profile from Go

Open
#3,616 0 comments 0 reactions 0 assignees View on GitHub
type/bug
Dominant language
Go
Stars
11.7k
Forks
802
Avg merge
1d 19h
Merged PRs (30d)
80

Description

It has been reported that importing a delta heap profile from Go in the ad-hoc view results in a malformed flame graph. It’s worth noting that the pprof tool does not handle this properly either. Apparently, samples with negative values are not sanitized.

A delta profile can be collected using the standard Go pprof HTTP endpoint:
```
curl http://127.0.0.1:12345/debug/pprof/heap?seconds=30 > heap.pprof
```

The issue affects `inuse_*` samples the most.

![Image](https://github.com/user-attachments/assets/8e068f00-e8e7-4580-8985-2b4fc8470774)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.