[HN Gopher] Block Profiling in Go
___________________________________________________________________
Block Profiling in Go
Author : felixge
Score : 126 points
Date : 2021-02-09 15:47 UTC (7 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| Cooth_Calvin wrote:
| Funny I have the same problem now figure out Mine! HA!
| dhagz wrote:
| I'm continually impressed by what Go offers in the way of
| profiling and performance observability baked into the language.
| I know tools to do benchmarking and profiling exist for other
| languages, but the fact that a lot of that data is "in the box"
| for Go is incredibly convenient, to the point where any API I
| develop has a flag to enable serving pprof data.
| mhh__ wrote:
| Indeed, D has coverage, profiling, and unittests (unittest {})
| built directly into the language and it massively eases using
| these concepts and encourages their use casually.
| felixge wrote:
| OP here. This is my attempt to document this profiler in Go based
| on my own research. As far as I can tell there is not much
| information about it out there.
|
| Happy to answer any questions.
| singular_tony wrote:
| Thank you for taking the time to research and write this down.
| I've bookmarked this as helpful resource material for the next
| time I have to go digging through my profiles.
| felixge wrote:
| Thanks! Credit should also go to my employer Datadog. They
| allowed me to spend some time on this and make it available
| to the public!
___________________________________________________________________
(page generated 2021-02-09 23:01 UTC)