]> Cypherpunks repositories - gostls13.git/commit
internal/trace: compute span stats as computing goroutine stats
authorHana Kim <hakim@google.com>
Thu, 15 Mar 2018 02:22:31 +0000 (22:22 -0400)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Mon, 26 Mar 2018 16:59:01 +0000 (16:59 +0000)
commit68a1c9c4004c77ad12ecdc8dd54b11f280797e0a
tree2ad64492fe3359070bb8dac43dae5c135666829d
parent24cd1120868e7b16e93d6f83f8b31cd7d215ebcf
internal/trace: compute span stats as computing goroutine stats

Move part of UserSpan event processing from cmd/trace.analyzeAnnotations
to internal/trace.GoroutineStats that returns analyzed per-goroutine
execution information. Now the execution information includes list of
spans and their execution information.

cmd/trace.analyzeAnnotations utilizes the span execution information
from internal/trace.GoroutineStats and connects them with task
information.

Change-Id: Ib7f79a3ba652a4ae55cd81ea17565bcc7e241c5c
Reviewed-on: https://go-review.googlesource.com/101917
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Peter Weinberger <pjw@google.com>
src/cmd/trace/annotations.go
src/cmd/trace/annotations_test.go
src/cmd/trace/trace.go
src/internal/trace/goroutines.go