go/internal/telemetry/export
Ian Cottrell 888a00fb34 internal/telemetry: a faster logging exporter
Moved printing directly inside the exporter,
which yields a massive reduction in allocations.

name                old time/op    new time/op    delta
/Log-8                41.7µs ± 1%    13.6µs ± 2%  -67.48%

name                old alloc/op   new alloc/op   delta
/Log-8                20.9kB ± 0%     3.6kB ± 0%  -82.86%

name                old allocs/op  new allocs/op  delta
/Log-8                   286 ± 0%        16 ± 0%  -94.41%

Change-Id: Ieafd644683d98d24978c8be061e6632dd8ef113e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/227302
Run-TryBot: Ian Cottrell <iancottrell@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
2020-04-08 13:21:36 +00:00
..
metric internal/lsp: make tag iteration allocation-free 2020-04-08 13:20:38 +00:00
ocagent internal/lsp: make tag iteration allocation-free 2020-04-08 13:20:38 +00:00
prometheus internal/telemetry: replace TagSet with TagMap and TagPointer 2020-03-25 01:00:44 +00:00
id.go internal/telemetry: change tracing to be event based 2020-03-04 02:41:40 +00:00
log.go internal/telemetry: a faster logging exporter 2020-04-08 13:21:36 +00:00
log_test.go internal/telemetry: add an example of using the logging behaviour 2020-04-06 17:23:38 +00:00
tag.go internal/lsp: make event directly implement TagMap 2020-04-06 17:24:01 +00:00
trace.go internal/telemetry: add a synchronization to telemetry 2020-03-30 19:15:27 +00:00