Skip to content

Instantly share code, notes, and snippets.

@selfup
Last active April 10, 2018 01:16
Show Gist options
  • Save selfup/74fdf66fb6b1bb8916d93d264dd6f867 to your computer and use it in GitHub Desktop.
Save selfup/74fdf66fb6b1bb8916d93d264dd6f867 to your computer and use it in GitHub Desktop.
Showing nodes accounting for 29.42s, 85.85% of 34.27s total
Dropped 389 nodes (cum <= 0.17s)
Showing top 10 nodes out of 125
flat flat% sum% cum cum%
22.63s 66.03% 66.03% 22.68s 66.18% syscall.Syscall
1.68s 4.90% 70.94% 1.68s 4.90% runtime.mach_semaphore_signal
1.12s 3.27% 74.20% 1.12s 3.27% runtime.kevent
1.08s 3.15% 77.36% 1.08s 3.15% runtime.freedefer
0.84s 2.45% 79.81% 0.84s 2.45% runtime.usleep
0.81s 2.36% 82.17% 0.81s 2.36% runtime.mach_semaphore_wait
0.69s 2.01% 84.18% 0.69s 2.01% internal/poll.convertErr
0.23s 0.67% 84.86% 0.39s 1.14% runtime.scanobject
0.20s 0.58% 85.44% 1.28s 3.74% runtime.netpoll
0.14s 0.41% 85.85% 1.31s 3.82% runtime.mallocgc
---------------------------------------------------------------------------------------------
Showing nodes accounting for 10283.63kB, 100% of 10283.63kB total
Showing top 10 nodes out of 36
flat flat% sum% cum cum%
4111.02kB 39.98% 39.98% 4111.02kB 39.98% bufio.NewWriterSize (inline)
3084.01kB 29.99% 69.97% 3084.01kB 29.99% bufio.NewReaderSize (inline)
1024.38kB 9.96% 79.93% 1024.38kB 9.96% runtime.malg
528.17kB 5.14% 85.06% 528.17kB 5.14% net/http.glob..func14
512.05kB 4.98% 90.04% 512.05kB 4.98% net/http.(*persistConn).writeLoop
512.01kB 4.98% 95.02% 512.01kB 4.98% net/textproto.(*Reader).ReadLine
512kB 4.98% 100% 512kB 4.98% net.newTCPConn
0 0% 100% 3084.01kB 29.99% bufio.NewReader
0 0% 100% 1542.01kB 14.99% bufio.NewWriter
0 0% 100% 528.17kB 5.14% io.Copy
---------------------------------------------------------------------------------------------
Showing nodes accounting for 24536290, 65.08% of 37701780 total
Dropped 71 nodes (cum <= 188508)
Showing top 10 nodes out of 53
flat flat% sum% cum cum%
8455996 22.43% 22.43% 9701214 25.73% net/textproto.(*Reader).ReadMIMEHeader
2779994 7.37% 29.80% 4599328 12.20% net/http.(*persistConn).roundTrip
2474035 6.56% 36.36% 10355733 27.47% net/http.(*Client).Do
2130814 5.65% 42.02% 11462043 30.40% net/http.(*persistConn).readLoop
2129951 5.65% 47.67% 3532519 9.37% net/http.(*Request).write
1622217 4.30% 51.97% 8735554 23.17% net/http.(*conn).readRequest
1310767 3.48% 55.45% 1314408 3.49% context.WithCancel
1251330 3.32% 58.76% 1251330 3.32% net/textproto.MIMEHeader.Set
1245202 3.30% 62.07% 1245202 3.30% net/textproto.(*Reader).ReadLine
1135984 3.01% 65.08% 1725835 4.58% net/http.(*Client).makeHeadersCopier
----------------------------------------------------------------------------------------------
1.01s 29: res, err := client.Get(uri)
. . 30:
. . 31: if err != nil {
. . 32: log.Println("|", res.Status, "|", uri, "|", err)
. . 33: }
. . 34:
. . 35: defer res.Body.Close()
. . 36:
10ms 500ms 37: io.Copy(w, res.Body)
. 20ms 38:}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment