Pro Yearly is on sale from $80 to $50! »

Go profiling(Geeks Who Drink発表資料) / Go profiling

Go profiling(Geeks Who Drink発表資料) / Go profiling

6月28日のGeeks Who Drinkで、ヌーラボのSteveがお話しした、Golangに関する発表資料です。

3e77f9dbec6a87756d1dbdddab283aee?s=128

Nulab Inc.

June 28, 2017
Tweet

Transcript

  1. Go pro ling Steve Carrupt Nulab Software Developer

  2. Agenda pprof go-torch Demo Questions

  3. pprof CPU, heap, blocks, routines pro lers provided by the

    Go runtime Get pro ling data through Benchmark tests $ go test -v -run=^$ -bench=^ -cpuprofile=prof.cpu $ go tool pprof [binary].test prof.cpu pprof HTTP handlers import _ net/http/pprof $ go tool pprof http://localhost:8080/debug/pprof/profile code runtime.StartCPUPro le or runtime.WriteHeapPro le
  4. CLI pro ling example

  5. Web pro ling example

  6. go-torch Easier to read pro ling data with ame graphes

  7. Demo github.com/scarrupt/go-pro ling (https://github.com/scarrupt/go-pro ling)

  8. Questions The real problem is that programmers have spent far

    too much time worrying about e ciency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming. Donald Ervin Knuth sources: golang.org/pkg/net/http/pprof/ (https://golang.org/pkg/net/http/pprof/) github.com/uber/go-torch (https://github.com/uber/go-torch)
  9. Thank you Steve Carrupt Nulab Software Developer @stevecarrupt (http://twitter.com/stevecarrupt)