Descriptionruntime: output how long goroutines are blocked
Example of output:
goroutine 4 [sleep for 3 min]:
time.Sleep(0x34630b8a000)
src/pkg/runtime/time.goc:31 +0x31
main.func·002()
block.go:16 +0x2c
created by main.main
block.go:17 +0x33
Full program and output are here:
http://play.golang.org/p/NEZdADI3Td
Fixes issue 6809.
Patch Set 1 #Patch Set 2 : diff -r 63dc9bf51514 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r 63dc9bf51514 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r 63dc9bf51514 https://dvyukov%40google.com@code.google.com/p/go/ #
Total comments: 3
Patch Set 5 : diff -r 209c0d648d9c https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 6 : diff -r 209c0d648d9c https://dvyukov%40google.com@code.google.com/p/go/ #
MessagesTotal messages: 10
|