• Austin Clements's avatar
    runtime, cmd/trace: track goroutines blocked on GC assists · 6da83c6f
    Austin Clements authored
    Currently when a goroutine blocks on a GC assist, it emits a generic
    EvGoBlock event. Since assist blocking events and, in particular, the
    length of the blocked assist queue, are important for diagnosing GC
    behavior, this commit adds a new EvGoBlockGC event for blocking on a
    GC assist. The trace viewer uses this event to report a "waiting on
    GC" count in the "Goroutines" row. This makes sense because, unlike
    other blocked goroutines, these goroutines do have work to do, so
    being blocked on a GC assist is quite similar to being in the
    "runnable" state, which we also report in the trace viewer.
    
    Change-Id: Ic21a326992606b121ea3d3d00110d8d1fdc7a5ef
    Reviewed-on: https://go-review.googlesource.com/30704
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarDmitry Vyukov <dvyukov@google.com>
    6da83c6f
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...