Skip to content

Instantly share code, notes, and snippets.

@goldeneggg
Created August 5, 2014 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goldeneggg/3047bc29cc5e3c06b499 to your computer and use it in GitHub Desktop.
Save goldeneggg/3047bc29cc5e3c06b499 to your computer and use it in GitHub Desktop.
Go1.3 本体のソースでゴルーチンを起動している箇所数
143 runtime/race/testdata/mop_test.go
50 runtime/race/testdata/chan_test.go
41 runtime/race/testdata/slice_test.go
27 runtime/race/testdata/waitgroup_test.go
25 net/http/serve_test.go
22 runtime/chan_test.go
21 runtime/race/testdata/atomic_test.go
21 net/timeout_test.go
19 runtime/race/testdata/map_test.go
18 runtime/proc_test.go
15 net/http/transport_test.go
14 runtime/race/testdata/select_test.go
14 runtime/race/testdata/comp_test.go
14 net/tcp_test.go
13 runtime/race/testdata/sync_test.go
12 runtime/race/testdata/rwmutex_test.go
12 runtime/race/testdata/mutex_test.go
10 runtime/stack_test.go
9 io/pipe_test.go
8 runtime/pprof/pprof_test.go
8 net/rpc/jsonrpc/all_test.go
8 net/net_test.go
7 sync/cond_test.go
7 sync/atomic/atomic_test.go
7 runtime/crash_test.go
7 crypto/tls/handshake_server_test.go
6 sync/rwmutex_test.go
6 net/http/transport.go
6 net/dial_test.go
6 log/syslog/syslog_test.go
6 database/sql/sql_test.go
5 time/sleep_test.go
5 os/exec/exec_test.go
5 net/rpc/server_test.go
4 sync/mutex_test.go
4 runtime/race/testdata/regression_test.go
4 runtime/race/output_test.go
4 net/server_test.go
4 net/pipe_test.go
3 sync/waitgroup_test.go
3 strings/reader_test.go
3 runtime/race/testdata/finalizer_test.go
3 runtime/map_test.go
3 runtime/crash_cgo_test.go
3 net/unix_test.go
3 net/rpc/server.go
3 net/lookup_windows.go
3 net/http/server.go
3 bytes/reader_test.go
2 testing/testing.go
2 testing/benchmark.go
2 sync/example_test.go
2 runtime/race/testdata/io_test.go
2 runtime/mfinal_test.go
2 runtime/malloc_test.go
2 reflect/all_test.go
2 os/signal/signal_test.go
2 net/smtp/smtp_test.go
2 net/http/httptest/server.go
2 net/http/fcgi/child.go
2 net/fd_windows.go
2 net/fd_mutex_test.go
2 mime/multipart/quotedprintable_test.go
2 go/printer/printer_test.go
2 go/doc/testdata/testing.go
2 crypto/tls/tls_test.go
1 time/time_test.go
1 time/sleep.go
1 text/template/parse/lex.go
1 text/template/exec_test.go
1 testing/example.go
1 syscall/net_nacl.go
1 syscall/exec_plan9.go
1 sync/runtime_sema_test.go
1 sync/pool_test.go
1 sync/once_test.go
1 runtime/syscall_windows_test.go
1 runtime/symtab_test.go
1 runtime/runtime_unix_test.go
1 runtime/race/testdata/cgo_test_main.go
1 runtime/pprof/pprof.go
1 runtime/parfor_test.go
1 runtime/lfstack_test.go
1 runtime/gc_test.go
1 runtime/futex_test.go
1 os/signal/signal_windows_test.go
1 os/signal/signal_unix.go
1 os/os_test.go
1 os/exec/exec.go
1 net/z_last_test.go
1 net/rpc/client.go
1 net/protoconn_test.go
1 net/net_windows_test.go
1 net/net.go
1 net/mockserver_test.go
1 net/lookup.go
1 net/http/triv.go
1 net/http/httputil/reverseproxy.go
1 net/http/httputil/dump.go
1 net/http/fs.go
1 net/http/filetransport.go
1 net/http/client_test.go
1 net/http/cgi/matryoshka_test.go
1 net/example_test.go
1 net/dnsname_test.go
1 net/dnsclient_unix.go
1 net/dial_gen.go
1 net/dial.go
1 net/conn_test.go
1 math/big/nat_test.go
1 image/png/reader_test.go
1 go/token/position_test.go
1 go/parser/short_test.go
1 go/doc/testdata/example.go
1 go/doc/testdata/benchmark.go
1 encoding/json/stream_test.go
1 encoding/gob/type_test.go
1 encoding/base64/base64_test.go
1 database/sql/sql.go
1 crypto/tls/tls.go
1 crypto/tls/handshake_client_test.go
1 crypto/rsa/pss_test.go
1 compress/zlib/writer_test.go
1 compress/lzw/writer_test.go
1 compress/gzip/gunzip_test.go
1 bufio/bufio_test.go
1 archive/zip/reader_test.go
@goldeneggg
Copy link
Author

コマンド(たぶん過不足無いはず)

$ grep -n "\sgo .*(" **/*.go | grep -v "[0-9]:\s*//" | awk -F":" '{print $1}' | sort | uniq -c | sort -r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment