]> Cypherpunks.ru repositories - gostls13.git/commit
internal/trace: implement MutatorUtilizationV2
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 6 Nov 2023 04:37:19 +0000 (04:37 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 10 Nov 2023 15:50:39 +0000 (15:50 +0000)
commit9d914015f83bbc414313d3ad48e4a594a99c7d6b
treee6eacf83dab7e1b06ab1c1d3e9cfdcdd66cb373e
parent43ffe2a89230553efc9fc915e944b91438d9f1fd
internal/trace: implement MutatorUtilizationV2

This change adds a new MutatorUtilization for traces for Go 1.22+.

To facilitate testing, it also generates a short trace with the
gc-stress.go test program (shortening its duration to 10ms) and adds it
to the tests for the internal/trace/v2 package. Notably, we make sure
this trace has a GCMarkAssistActive event to test that codepath.

For #63960.
For #60773.

Change-Id: I2e61f545988677be716818e2a08641c54c4c201f
Reviewed-on: https://go-review.googlesource.com/c/go/+/540256
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/go/build/deps_test.go
src/internal/trace/gc.go
src/internal/trace/gc_test.go
src/internal/trace/v2/testdata/tests/go122-gc-stress.test [new file with mode: 0644]