1
0
mirror of https://github.com/golang/go synced 2024-10-05 10:31:22 -06:00
go/src/pkg/net
Dmitriy Vyukov 4cc7bf326a pprof: add goroutine blocking profiling
The profiler collects goroutine blocking information similar to Google Perf Tools.
You may see an example of the profile (converted to svg) attached to
http://code.google.com/p/go/issues/detail?id=3946
The public API changes are:
+pkg runtime, func BlockProfile([]BlockProfileRecord) (int, bool)
+pkg runtime, func SetBlockProfileRate(int)
+pkg runtime, method (*BlockProfileRecord) Stack() []uintptr
+pkg runtime, type BlockProfileRecord struct
+pkg runtime, type BlockProfileRecord struct, Count int64
+pkg runtime, type BlockProfileRecord struct, Cycles int64
+pkg runtime, type BlockProfileRecord struct, embedded StackRecord

R=rsc, dave, minux.ma, r
CC=gobot, golang-dev, r, remyoudompheng
https://golang.org/cl/6443115
2012-10-06 12:56:04 +04:00
..
http pprof: add goroutine blocking profiling 2012-10-06 12:56:04 +04:00
mail net/mail: make address parsing (more) public 2012-10-05 10:08:54 +10:00
rpc net/rpc/jsonrpc: fix test error message 2012-09-12 17:37:39 -04:00
smtp net/smtp: use EHLO then HELO 2012-02-21 16:39:02 -05:00
testdata net: make parseProcNetIGMP more robust 2012-02-23 06:26:31 +09:00
textproto net/http: speed up Header.WriteSubset 2012-06-25 08:54:36 -07:00
url net/url: sort keys in Encode; don't enumerate map randomly 2012-06-18 12:54:36 -07:00
cgo_bsd.go net: fix cgoAddrInfoFlags() on FreeBSD 2012-06-06 22:03:31 +08:00
cgo_linux.go net: move cgo address info flags to per-platform files 2012-06-03 23:54:14 +10:00
cgo_netbsd.go net: fix botched cgo netbsd merge 2012-06-05 02:12:23 +10:00
cgo_stub.go go/build: add BuildTags to Context, allow !tag 2012-01-23 15:16:38 -05:00
cgo_unix.go cgo: enable cgo on netbsd/386 and netbsd/amd64 2012-06-05 01:43:04 +10:00
dial_test.go net: pass tests on Plan 9 again 2012-06-06 18:38:56 -04:00
dial.go net: fix comment 2012-09-21 07:13:36 +09:00
dialgoogle_test.go net: change cname lookup test target to iana.org 2012-09-09 23:53:48 +09:00
dnsclient_unix.go net: fix lookup of AAAA-only hosts without cgo 2012-06-25 17:32:39 -04:00
dnsclient.go net: remove all direct fmt and bytes imports 2012-03-05 13:36:05 -08:00
dnsconfig_unix.go net: rename files to clarify platform dependency 2012-09-11 07:37:43 +09:00
dnsmsg_test.go net: do not use reflect for DNS messages. 2012-03-06 08:02:39 +01:00
dnsmsg.go net: do not use reflect for DNS messages. 2012-03-06 08:02:39 +01:00
dnsname_test.go net: rearrange source files so we could run more tests on windows 2011-06-13 10:22:31 +10:00
example_test.go pkg: a slew of examples 2012-02-18 11:48:33 +11:00
fd_darwin.go net: replace error variable name e, errno with err 2012-02-01 00:36:45 +09:00
fd_freebsd.go net: replace error variable name e, errno with err 2012-02-01 00:36:45 +09:00
fd_linux.go net: silence another epoll print 2012-03-05 22:07:22 -05:00
fd_netbsd.go net: replace error variable name e, errno with err 2012-02-01 00:36:45 +09:00
fd_openbsd.go net: replace error variable name e, errno with err 2012-02-01 00:36:45 +09:00
fd_unix.go net: spread fd over several pollservers. 2012-09-26 15:32:59 -04:00
fd_windows.go net: fix comment 2012-09-21 07:13:36 +09:00
file_plan9.go net, os, syscall: delete os.EPLAN9 2012-02-17 10:59:30 +09:00
file_test.go net: fix windows build 2012-03-06 10:07:08 +09:00
file_unix.go undo CL 6395055 / 2518eee18c4f 2012-09-19 01:33:03 +09:00
file_windows.go src/pkg/[n-z]*: gofix -r error -force=error 2011-11-01 22:05:34 -04:00
hosts_test.go net: move hosts testdata to testdata folder 2012-02-21 07:11:44 +09:00
hosts.go use new time API 2011-11-30 12:01:46 -05:00
interface_bsd.go net: tweak variable declarations 2012-02-03 07:40:03 +09:00
interface_darwin.go net: replace error variable name e, errno with err 2012-02-01 00:36:45 +09:00
interface_freebsd.go net: replace error variable name e, errno with err 2012-02-01 00:36:45 +09:00
interface_linux_test.go net: make parseProcNetIGMP more robust 2012-02-23 06:26:31 +09:00
interface_linux.go syscall, net: use native endianness for Linux netlink messages 2012-04-04 17:41:36 -07:00
interface_netbsd.go os: OS-dependent bits to support NetBSD. 2011-12-15 12:19:19 -05:00
interface_openbsd.go src/pkg/[n-z]*: gofix -r error -force=error 2011-11-01 22:05:34 -04:00
interface_stub.go all: various typos 2012-03-13 17:29:07 -07:00
interface_test.go net: remove unnecessary newline in testing.Logf from tests 2012-07-22 01:49:58 +09:00
interface_windows.go all: various typos 2012-03-13 17:29:07 -07:00
interface.go net: fix typo 2012-03-09 11:50:38 +09:00
ip_test.go all: sort imports 2011-11-02 15:54:16 -04:00
ip.go net, syscall: interface address and mask 2011-12-21 21:39:00 +09:00
ipraw_test.go undo CL 6395055 / 2518eee18c4f 2012-09-19 01:33:03 +09:00
iprawsock_plan9.go net: fix plan 9 build 2012-09-26 16:11:49 +09:00
iprawsock_posix.go net: add read, write message methods to IPConn, UDPConn 2012-09-25 06:57:32 +09:00
iprawsock.go net: fix typo 2012-07-20 08:32:25 +09:00
ipsock_plan9.go net: fix plan 9 build 2012-09-26 16:11:49 +09:00
ipsock_posix.go net: fix crash of Listen with "" or nil laddr 2012-04-25 12:29:14 +09:00
ipsock.go net: make parsePort as a function 2012-05-29 06:12:06 +09:00
lookup_plan9.go all: fixed various typos 2012-03-01 14:56:05 -08:00
lookup_test.go net: change cname lookup test target to iana.org 2012-09-09 23:53:48 +09:00
lookup_unix.go pkg: add missing godoc comments to windows versions 2012-01-17 16:51:54 +11:00
lookup_windows.go net: replace error variable name e, errno with err 2012-02-01 00:36:45 +09:00
lookup.go net: rename files to clarify platform dependency 2012-09-11 07:37:43 +09:00
mac_test.go net: don't import bytes or fmt in mac.go 2012-03-05 11:43:28 -08:00
mac.go net: don't import bytes or fmt in mac.go 2012-03-05 11:43:28 -08:00
multicast_posix_test.go net: delete unused IP-level socket option helpers 2012-09-11 08:56:28 +09:00
net_posix.go net: fix comment 2012-07-24 21:57:18 +09:00
net_test.go net: pass tests on Plan 9 again 2012-06-06 18:38:56 -04:00
net.go net, net/rpc, reflect, time: document concurrency guarantees 2012-03-07 14:55:09 -05:00
newpollserver_unix.go net: rename files to clarify platform dependency 2012-09-11 07:37:43 +09:00
parse_test.go net: add skip message to test 2012-03-06 15:41:17 +09:00
parse.go net: make parseProcNetIGMP more robust 2012-02-23 06:26:31 +09:00
pipe_test.go src/pkg/[n-z]*: gofix -r error -force=error 2011-11-01 22:05:34 -04:00
pipe.go net: change SetTimeout to SetDeadline 2012-01-18 16:24:06 -08:00
port_test.go
port_unix.go net: make parsePort as a function 2012-05-29 06:12:06 +09:00
port.go net: make parsePort as a function 2012-05-29 06:12:06 +09:00
sendfile_freebsd.go net: spread fd over several pollservers. 2012-09-26 15:32:59 -04:00
sendfile_linux.go net: spread fd over several pollservers. 2012-09-26 15:32:59 -04:00
sendfile_stub.go syscall, net: sendfile for FreeBSD 2012-06-25 20:26:19 -04:00
sendfile_windows.go net: fix windows build 2012-02-14 14:57:57 +09:00
server_test.go net: disable use of external listen along with other external network uses 2012-03-06 23:35:31 -05:00
sock_bsd.go net: enable SO_REUSEADDR, SO_REUSEPORT options on stream, multicast listeners only 2012-02-11 11:50:51 +09:00
sock_linux.go net: enable SO_REUSEADDR, SO_REUSEPORT options on stream, multicast listeners only 2012-02-11 11:50:51 +09:00
sock_posix.go net: fix comment 2012-09-21 07:13:36 +09:00
sock_windows.go net: enable SO_REUSEADDR, SO_REUSEPORT options on stream, multicast listeners only 2012-02-11 11:50:51 +09:00
sockopt_bsd.go net: make Dial and Listen behavior consistent across over platforms 2012-03-06 00:13:10 +09:00
sockopt_linux.go net: make Dial and Listen behavior consistent across over platforms 2012-03-06 00:13:10 +09:00
sockopt_posix.go net: rename files to clarify platform dependency 2012-09-11 07:37:43 +09:00
sockopt_windows.go net: make Dial and Listen behavior consistent across over platforms 2012-03-06 00:13:10 +09:00
sockoptip_bsd.go net: delete unused IP-level socket option helpers 2012-09-11 08:56:28 +09:00
sockoptip_linux.go net: delete unused IP-level socket option helpers 2012-09-11 08:56:28 +09:00
sockoptip_posix.go net: delete unused IP-level socket option helpers 2012-09-11 08:56:28 +09:00
sockoptip_windows.go net: delete unused IP-level socket option helpers 2012-09-11 08:56:28 +09:00
tcp_test.go net: add TCP benchmarks 2012-08-20 21:27:52 +04:00
tcpsock_plan9.go net: fix plan 9 build 2012-09-26 16:11:49 +09:00
tcpsock_posix.go net: fix spurious EADDRNOTAVAIL errors 2012-08-06 16:32:00 -04:00
tcpsock.go src/pkg/[n-z]*: gofix -r error -force=error 2011-11-01 22:05:34 -04:00
timeout_test.go net: add skip message to test 2012-03-06 15:41:17 +09:00
udp_test.go undo CL 6395055 / 2518eee18c4f 2012-09-19 01:33:03 +09:00
udpsock_plan9.go net: fix plan 9 build 2012-09-26 16:11:49 +09:00
udpsock_posix.go net: add read, write message methods to IPConn, UDPConn 2012-09-25 06:57:32 +09:00
udpsock.go net: pass tests on Plan 9 again 2012-06-06 18:38:56 -04:00
unicast_posix_test.go net: delete unused IP-level socket option helpers 2012-09-11 08:56:28 +09:00
unixsock_plan9.go net: fix plan 9 build 2012-09-26 16:11:49 +09:00
unixsock_posix.go net: add CloseRead, CloseWrite methods to UnixConn. 2012-05-30 00:08:58 +02:00
unixsock.go src/pkg/[n-z]*: gofix -r error -force=error 2011-11-01 22:05:34 -04:00