commit | a42d6a358dc2f0bb1add08de54c8c97be0875c9a | [log] [tgz] |
---|---|---|
author | Ian Cottrell <iancottrell@google.com> | Mon Mar 30 08:09:07 2020 -0400 |
committer | Ian Cottrell <iancottrell@google.com> | Tue Mar 31 00:51:03 2020 +0000 |
tree | 8bb16a76373bc134699e73856d5879bd9ce2aa6d | |
parent | 3b4a2bfdc9dfe6d566d9dbbcc7bf857fae3d7f2d [diff] |
internal/telemetry: give Event a custom implementation of TagMap This cuts the allocation cost of preparing an event for export from 4 down to 1. name old time/op new time/op delta /LogIgnore-8 5.97µs ± 6% 4.18µs ± 4% -29.87% (p=0.000 n=20+19) /TraceIgnore-8 13.6µs ± 4% 10.8µs ± 6% -20.92% (p=0.000 n=18+19) /StatsIgnore-8 11.3µs ± 6% 7.9µs ± 6% -30.29% (p=0.000 n=20+20) /Log-8 47.8µs ± 6% 43.9µs ± 6% -8.15% (p=0.000 n=20+19) /Trace-8 60.5µs ±12% 54.7µs ± 4% -9.58% (p=0.000 n=20+19) /Stats-8 13.8µs ± 3% 10.6µs ± 5% -23.57% (p=0.000 n=20+19) name old alloc/op new alloc/op delta /LogIgnore-8 5.12kB ± 0% 3.58kB ± 0% -30.00% (p=0.000 n=20+20) /TraceIgnore-8 14.6kB ± 0% 11.5kB ± 0% -21.05% (p=0.000 n=20+20) /StatsIgnore-8 10.2kB ± 0% 7.2kB ± 0% -30.00% (p=0.000 n=20+20) /Log-8 24.0kB ± 0% 20.9kB ± 0% -12.81% (p=0.000 n=18+20) /Trace-8 31.0kB ± 0% 27.9kB ± 0% -9.92% (p=0.000 n=20+20) /Stats-8 10.2kB ± 0% 7.2kB ± 0% -30.00% (p=0.000 n=20+20) name old allocs/op new allocs/op delta /LogIgnore-8 64.0 ± 0% 16.0 ± 0% -75.00% (p=0.000 n=20+20) /TraceIgnore-8 160 ± 0% 64 ± 0% -60.00% (p=0.000 n=20+20) /StatsIgnore-8 128 ± 0% 32 ± 0% -75.00% (p=0.000 n=20+20) /Log-8 382 ± 0% 286 ± 0% -25.13% (p=0.000 n=20+20) /Trace-8 480 ± 0% 384 ± 0% -20.00% (p=0.000 n=20+20) /Stats-8 128 ± 0% 32 ± 0% -75.00% (p=0.000 n=20+20) Change-Id: I76ff4ac9658b766daf3929e7cfc0d2cfcab036ed Reviewed-on: https://go-review.googlesource.com/c/tools/+/226359 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.