Help me understand the block profile

hello, i get a block profile with runtime/pprof, but i cannot parse it with go tool pprof xx xx.prof

some of its content:

730620867752 2 @ 0x44f4f2 0x4c7e10 0x4d5520 0x4d3ffa 0x471071
#   0x44f4f2    runtime.selectgo+0x12                 /home/eric/Downloads/go-      go1.6/src/runtime/select.go:215
#   0x4c7e10    github.com/WanliTian/apns/vendor/github.com/Shopify/sarama.      *partitionOffsetManager).mainLoop+0x2c0                                 /home/eric/Code/Go/GOPATH/src/github.com/WanliTian/apns/vendor/github.com/Shopify/sarama/offset_manager.go:215
#   0x4d5520    github.com/WanliTian/apns/vendor/github.com/Shopify/sarama.(*partitionOffsetManager).(github.com/WanliTian/apns/vendor/github.com/Shopify/sarama.mainLoop)-fm+0x20  /home/eric/Code/Go/GOPATH/src/github.com/WanliTian/apns/vendor/github.com/Shopify/sarama/offset_manager.go:208
#   0x4d3ffa    github.com/WanliTian/apns/vendor/github.com/Shopify/sarama.withRecover+0x3a                                             /home/eric/Code/Go/GOPATH/src/github.com/WanliTian/apns/vendor/github.com/Shopify/sarama/utils.go:46

730616148700 2 @ 0x4170cb 0x4b40d7 0x4d53f0 0x4d3ffa 0x471071
#   0x4170cb    runtime.chanrecv2+0x2b                                                                      /home/eric/Downloads/go-go1.6/src/runtime/chan.go:360
#   0x4b40d7    github.com/WanliTian/apns/vendor/github.com/Shopify/sarama.(*partitionConsumer).dispatcher+0x57                                 /home/eric/Code/Go/GOPATH/src/github.com/WanliTian/apns/vendor/github.com/Shopify/sarama/consumer.go:305
#   0x4d53f0    github.com/WanliTian/apns/vendor/github.com/Shopify/sarama.(*partitionConsumer).(github.com/WanliTian/apns/vendor/github.com/Shopify/sarama.dispatcher)-fm+0x20 /home/eric/Code/Go/GOPATH/src/github.com/WanliTian/apns/vendor/github.com/Shopify/sarama/consumer.go:155
#   0x4d3ffa    github.com/WanliTian/apns/vendor/github.com/Shopify/sarama.withRecover+0x3a                                         /home/eric/Code/Go/GOPATH/src/github.com/WanliTian/apns/vendor/github.com/Shopify/sarama/utils.go:46

730574061039 1220 @ 0x4170cb 0x4b4cb0 0x4d5420 0x4d3ffa 0x471071
#   0x4170cb    runtime.chanrecv2+0x2b                                                                          /home/eric/Downloads/go-go1.6/src/runtime/chan.go:360
#   0x4b4cb0    github.com/WanliTian/apns/vendor/github.com/Shopify/sarama.(*partitionConsumer).responseFeeder+0x80                                 /home/eric/Code/Go/GOPATH/src/github.com/WanliTian/apns/vendor/github.com/Shopify/sarama/consumer.go:416
#   0x4d5420    github.com/WanliTian/apns/vendor/github.com/Shopify/sarama.(*partitionConsumer).(github.com/WanliTian/apns/vendor/github.com/Shopify/sarama.responseFeeder)-fm+0x20 /home/eric/Code/Go/GOPATH/src/github.com/WanliTian/apns/vendor/github.com/Shopify/sarama/consumer.go:156
#   0x4d3ffa    github.com/WanliTian/apns/vendor/github.com/Shopify/sarama.withRecover+0x3a                                             /home/eric/Code/Go/GOPATH/src/github.com/WanliTian/apns/vendor/github.com/Shopify/sarama/utils.go:46

what’s the meaning of each column?

Why can’t you do this ? What did you try ? What did you see ?

Personally I find the visual output of a block profile to be the most useful

go tool pprof -svg $BINARY $PROFILE > out.svg

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.