]> Cypherpunks repositories - gostls13.git/commit
cmd/trace: add minimum mutator utilization (MMU) plot
authorAustin Clements <austin@google.com>
Mon, 24 Jul 2017 15:37:59 +0000 (11:37 -0400)
committerAustin Clements <austin@google.com>
Mon, 5 Nov 2018 19:10:04 +0000 (19:10 +0000)
commit3053788cac0343c2fd29806ebc358d2f63976695
tree4448e0cc96b61734eaa7857f437f5d27ce1ca048
parentf999576dd8df6e4d09e3c67c23ba4d8dc18d53d3
cmd/trace: add minimum mutator utilization (MMU) plot

This adds an endpoint to the trace tool that plots the minimum mutator
utilization curve using information on mark assists and GC pauses from
the trace.

This commit implements a fairly straightforward O(nm) algorithm for
computing the MMU (and tests against an even more direct but slower
algorithm). Future commits will extend and optimize this algorithm.

This should be useful for debugging and understanding mutator
utilization issues like #14951, #14812, #18155. #18534, #21107,
particularly once follow-up CLs add trace cross-referencing.

Change-Id: Ic2866869e7da1e6c56ba3e809abbcb2eb9c4923a
Reviewed-on: https://go-review.googlesource.com/c/60790
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
src/cmd/trace/main.go
src/cmd/trace/mmu.go [new file with mode: 0644]
src/internal/traceparser/gc.go [new file with mode: 0644]
src/internal/traceparser/gc_test.go [new file with mode: 0644]