Skip to content

Instantly share code, notes, and snippets.

@jeanqasaur
Created September 21, 2021 17:31
Show Gist options
  • Save jeanqasaur/43db27bd3a81a13cfe9ee2ddabe960e4 to your computer and use it in GitHub Desktop.
Save jeanqasaur/43db27bd3a81a13cfe9ee2ddabe960e4 to your computer and use it in GitHub Desktop.
Diffing before and after Go increases heap size
Showing nodes accounting for 419.70MB, 87.98% of 477.03MB total
Dropped 129 nodes (cum <= 2.39MB)
Showing top 10 nodes out of 114
flat flat% sum% cum cum%
231.14MB 48.45% 48.45% 234.14MB 49.08% io.ReadAll
52.93MB 11.10% 59.55% 53.43MB 11.20% github.com/google/gopacket/pcap.(*Handle).ReadPacketData
51.45MB 10.79% 70.33% 123.88MB 25.97% github.com/google/gopacket.(*PacketSource).NextPacket
42.42MB 8.89% 79.23% 42.42MB 8.89% bytes.makeSlice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment