Profiling 0 ▲ Internals for Interns 5 hours ago · Tech · hide · 0 comments 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 time, then accumulating that into something you can open with go tool pprof. The heart of every sample is a call stack, produced with the same unwinder we saw in the Stacktraces article . So profiling is really live moment-catching sitting on top of build-time stack-reading. No comments yet. Log in to reply on the Fediverse. Comments will appear here.