gvisor/pkg/log
Adin Scannell 253c9e666c Cleanup glog and add real caller information.
In general, we've learned that logging must be avoided at all
costs in the hot path. It's unlikely that the optimizations
here were significant in any case, since buffer would certainly
escape.

This also adds a test to ensure that the caller identification
works as expected, and so that logging can be benchmarked.

Original:
BenchmarkGoogleLogging-6   	 1222255	       949 ns/op

With this change:
BenchmarkGoogleLogging-6   	  517323	      2346 ns/op

Fixes #184

PiperOrigin-RevId: 291815420
2020-01-27 16:08:35 -08:00
..
BUILD Cleanup glog and add real caller information. 2020-01-27 16:08:35 -08:00
glog.go Cleanup glog and add real caller information. 2020-01-27 16:08:35 -08:00
json.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
json_k8s.go Cleanup glog and add real caller information. 2020-01-27 16:08:35 -08:00
json_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
log.go Cleanup glog and add real caller information. 2020-01-27 16:08:35 -08:00
log_test.go Cleanup glog and add real caller information. 2020-01-27 16:08:35 -08:00