• Austin Clements's avatar
    internal/trace: add "per-P" MMU analysis · bef4efc8
    Austin Clements authored
    The current MMU analysis considers all Ps together, so if, for
    example, one of four Ps is blocked, mutator utilization is 75%.
    However, this is less useful for understanding the impact on
    individual goroutines because that one blocked goroutine could be
    blocked for a very long time, but we still appear to have good
    utilization.
    
    Hence, this introduces a new flag that does a "per-P" analysis where
    the utilization of each P is considered independently. The MMU is then
    the combination of the MMU for each P's utilization function.
    
    Change-Id: Id67b980d4d82b511d28300cdf92ccbb5ae8f0c78
    Reviewed-on: https://go-review.googlesource.com/c/60797
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarHyang-Ah Hana Kim <hyangah@gmail.com>
    bef4efc8
gc_test.go 4.46 KB