All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Understanding Heap Allocations in Go with go_allocation_probe

By

blenderob

10mo ago· 7 min readenNews

Summary

The article discusses the author's creation of a tool called go_allocation_probe to track heap allocations in Go code and identify specific types causing excessive allocations.

Key quotes

· 2 pulled
Every heap allocation in go afaict goes through a single function - mallocgc.
So with the help of Matt Knight I wrote perhaps the most appallingly fragile code I have ever written - go_allocation_probe.
Snippet from the RSS feed
The profiling tools in go will tell you where allocations happened in the code, but won't record the type of the allocation. I suspected that in the code I was looking at, some specific types were causing a lot of allocation but that those allocations wer

You might also wanna read