2min chapter

Go Time: Golang, Software Engineering cover image

Don't forget about memory management

Go Time: Golang, Software Engineering

CHAPTER

The Best Way to Measure the Heap?

You can get some pretty detailed information about what the garbage collector in the heap is up to as a go programme by sort of asking the run time. There's a special function that you can call, and it gives you back a bunch of information. I really like this program called stats biz, which somebody named a r l made,. That just exposes this little t p server that has a little kind of real time drawn graff of the different lines. If you're running it on an active web server, you can see the actual amount of heap kind of trending towards that that threshold. And as soon as it comes above then you can see there's a line the fulgy sea.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode