go/src/internal
Heschi Kreinick 2a74b9e814 cmd/trace: Record mark assists in execution traces
During the mark phase of garbage collection, goroutines that allocate
may be recruited to assist. This change creates trace events for mark
assists and displays them similarly to sweep assists in the trace
viewer.

Mark assists are different than sweeps in that they can be preempted, so
displaying them in the trace viewer is a little tricky -- we may need to
synthesize multiple slices for one mark assist. This could have been
done in the parser instead, but I thought it might be preferable to keep
the parser as true to the event stream as possible.

Change-Id: I381dcb1027a187a354b1858537851fa68a620ea7
Reviewed-on: https://go-review.googlesource.com/36015
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2017-02-10 18:03:42 +00:00
..
nettrace net, net/http: don't trace DNS dials 2016-05-14 00:14:25 +00:00
pprof/profile internal/pprof/profile: parse mutex profile including comments 2016-11-29 18:04:37 +00:00
race testing: mark tests and benchmarks failed if a race occurs during execution 2016-11-03 18:19:49 +00:00
singleflight all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
syscall internal/syscall/windows: add GetModuleFileName 2016-11-07 22:18:24 +00:00
testenv os: use extended-length paths on Windows when possible 2016-11-07 20:31:02 +00:00
trace cmd/trace: Record mark assists in execution traces 2017-02-10 18:03:42 +00:00