• Austin Clements's avatar
    runtime, cmd/trace: annotate different mark worker types · 68348394
    Austin Clements authored
    Currently mark workers are shown in the trace as regular goroutines
    labeled "runtime.gcBgMarkWorker". That's somewhat unhelpful to an end
    user because of the opaque label and particularly unhelpful to runtime
    developers because it doesn't distinguish the different types of mark
    workers.
    
    Fix this by introducing a variant of the GoStart event called
    GoStartLabel that lets the runtime indicate a label for a goroutine
    execution span and using this to label mark worker executions as "GC
    (<mode>)" in the trace viewer.
    
    Since this bumps the trace version to 1.8, we also add test data for
    1.7 traces.
    
    Change-Id: Id7b9c0536508430c661ffb9e40e436f3901ca121
    Reviewed-on: https://go-review.googlesource.com/30702
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarDmitry Vyukov <dvyukov@google.com>
    68348394
Name
Last commit
Last update
..
http_1_5_good Loading commit data...
http_1_7_good Loading commit data...
stress_1_5_good Loading commit data...
stress_1_5_unordered Loading commit data...
stress_1_7_good Loading commit data...
stress_start_stop_1_5_good Loading commit data...
stress_start_stop_1_7_good Loading commit data...