• 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
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...