• Heschi Kreinick's avatar
    cmd/trace: Record mark assists in execution traces · 2a74b9e8
    Heschi Kreinick authored
    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: default avatarAustin Clements <austin@google.com>
    Reviewed-by: default avatarHyang-Ah Hana Kim <hyangah@gmail.com>
    2a74b9e8
trace.go 20.1 KB