Understanding the Go Runtime: Profiling
In the previous article we took apart the reflect package and found that its magic is mostly the compiler leaving very good notes — type descriptors frozen into read-only data at build time, and a package that knows how to walk them. The whole article was about reading metadata that was already sitting in memory before main even started. Today we shift the perspective. Profiling is the runtime catching your program in motion — sampling what it’s doing and where it’s spending its tim
Read full article →