Skip to content

Commit

Permalink
fix: fix miss makezero bug (#867)
Browse files Browse the repository at this point in the history
Signed-off-by: alingse <alingse@foxmail.com>
  • Loading branch information
alingse authored May 28, 2024
1 parent 4bfdf5a commit 186aa03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/graph/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ func newTree(prof *profile.Profile, o *Options) (g *Graph) {
}
}

nodes := make(Nodes, len(prof.Location))
nodes := make(Nodes, 0, len(prof.Location))
for _, nm := range parentNodeMap {
nodes = append(nodes, nm.nodes()...)
}
Expand Down

0 comments on commit 186aa03

Please sign in to comment.