cmd/trace: track each G's state explicitly
cmd/trace: track each G's state explicitly

Currently the trace tool tracks an overall counts of goroutine states,
but not the states of any individual goroutine. We're about to add
more sophisticated blocked-state tracking, so add this tracking and
base the state counts off the tracked goroutine states.

Change-Id: I943ed61782436cf9540f4ee26c5561715c5b4a1d
Reviewed-on: https://go-review.googlesource.com/30703
Run-TryBot: Austin Clements <7ea35d812706d9213868749011af1ed4fa2f6aa0@google.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Dmitry Vyukov <05e8181be3150e47da8fe2e1f18d381c75496ff4@google.com>

golang/go,derekmarcotte/go,CAFxX/go,linux-on-ibm-z/go,codestation/go,akutz/go,vsekhar/elastic-go,codestation/go,derekmarcotte/go,akutz/go,golang/go,polyverse-security/go,suncycheng/go,akutz/go,cloudflare/go,cloudflare/go,golang/go,derekmarcotte/go,suncycheng/go,cloudflare/go,josharian/go,vsekhar/elastic-go,nawawi/go,cloudflare/go,linux-on-ibm-z/go,suncycheng/go,ImJasonH/go,nawawi/go,CAFxX/go,golang/go,codestation/go,goodlang/good,nawawi/go,goodlang/good,Cofyc/go,derekmarcotte/go,Cofyc/go,derekmarcotte/go,akutz/go,cloudflare/go,josharian/go,Cofyc/go,nawawi/go,CAFxX/go,linux-on-ibm-z/go,Cofyc/go,derekmarcotte/go,codestation/go,josharian/go,Cofyc/go,polyverse-security/go,goodlang/good,polyverse-security/go,suncycheng/go,josharian/go,ImJasonH/go,CAFxX/go,vsekhar/elastic-go,nawawi/go,CAFxX/go,polyverse-security/go,josharian/go,goodlang/good,polyverse-security/go,nawawi/go,CAFxX/go,codestation/go,codestation/go,suncycheng/go,derekmarcotte/go,ImJasonH/go,Cofyc/go,suncycheng/go,goodlang/good,linux-on-ibm-z/go,ImJasonH/go,ImJasonH/go,vsekhar/elastic-go,akutz/go,linux-on-ibm-z/go,josharian/go,cloudflare/go,linux-on-ibm-z/go,goodlang/good,josharian/go,josharian/go,nawawi/go,derekmarcotte/go,golang/go,golang/go,Cofyc/go,linux-on-ibm-z/go,golang/go,akutz/go,codestation/go,vsekhar/elastic-go,polyverse-security/go,ImJasonH/go,christopher-henderson/Go,linux-on-ibm-z/go,ImJasonH/go,CAFxX/go,goodlang/good,suncycheng/go,akutz/go,vsekhar/elastic-go,nawawi/go,ImJasonH/go,cloudflare/go,polyverse-security/go,akutz/go,vsekhar/elastic-go,polyverse-security/go,golang/go,codestation/go,goodlang/good,suncycheng/go,Cofyc/go,vsekhar/elastic-go,CAFxX/go,cloudflare/go