cloudwego/goref

Go heap object reference analysis tool

Owned by Tencent

View on GitHub ↗Jump to charts ↓Open shareable report →

cloudwego/goref has 1k+ stars and 40+ forks on GitHub, is written in Go, and was last pushed on Mar 24, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Added to GitGenius on October 12th, 2026
Created on July 10th, 2024
Open Issues & Pull Requests: 9 (+0)
GitHub issues: Enabled
Number of forks: 49
Total Stargazers: 1,026 (+0)
Total Subscribers: 12 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 4.4 hours
Mean response time: 17.6 days
90th percentile: 49.0 days
Tracked items: 14

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 4
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 218 days
Stale 30+ days: 4
Stale 90+ days: 4

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

Goref is a Go heap object reference analysis tool that helps developers understand memory allocation patterns and identify memory leaks by visualizing which code locations hold references to heap objects.

The tool works by attaching to a running Go process using its PID and leveraging the delve debugger to analyze heap memory. It generates a profile showing the space and object count distribution across the call stack, displaying which code paths are responsible for creating and retaining heap objects. The output can be viewed through the pprof tool in an interactive HTML interface where developers can toggle between viewing inuse space or inuse object counts. This approach makes it possible to see the actual reference distribution of heap objects reachable by the garbage collector, allowing developers to pinpoint code locations that are holding references and causing memory to persist.

Goref suits teams working on long-running Go services where memory optimization matters, particularly when investigating suspected memory leaks or when reducing garbage collector overhead is a priority. It works with Go versions from 1.19 through 1.26 and can analyze both live processes and core files. The tool is most valuable when you need to move beyond generic memory profiling to understand the specific reference chains keeping objects alive in memory.

The project shows consistent maintenance with regular updates addressing issues and improving functionality. Development activity demonstrates responsiveness to user feedback and bug reports. The tool receives ongoing refinement to expand compatibility across Go versions and enhance the analysis capabilities available to users.