diff options
author | 2017-10-21 09:30:59 +0100 | |
---|---|---|
committer | 2017-10-21 09:30:59 +0100 | |
commit | 0af3fbab4f64ab1e1abc4fec198752e57febbfd9 (patch) | |
tree | 61b702dc378c53a2113ee30bbe8a0d341a73b468 /core/dnsserver/server.go | |
parent | d64b684831aff2df86d9cea8e23bf57c85b6772f (diff) | |
download | coredns-0af3fbab4f64ab1e1abc4fec198752e57febbfd9.tar.gz coredns-0af3fbab4f64ab1e1abc4fec198752e57febbfd9.tar.zst coredns-0af3fbab4f64ab1e1abc4fec198752e57febbfd9.zip |
core: add ServeDNS benchmark (#1158)
* core: add ServeDNS benchmark
Add benchmark function so we can perf test future additions to the
servers' ServeDNS function.
* naming
Diffstat (limited to 'core/dnsserver/server.go')
-rw-r--r-- | core/dnsserver/server.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/dnsserver/server.go b/core/dnsserver/server.go index 721fd216e..bb9a87a12 100644 --- a/core/dnsserver/server.go +++ b/core/dnsserver/server.go @@ -280,7 +280,7 @@ func (s *Server) OnStartupComplete() { } } -// Tracer ... TODO: Add comment +// Tracer returns the tracer in the server if defined. func (s *Server) Tracer() ot.Tracer { if s.trace == nil { return nil @@ -308,7 +308,5 @@ const ( udp = 1 ) -var ( - // Quiet mode will not show any informative output on initialization. - Quiet bool -) +// Quiet mode will not show any informative output on initialization. +var Quiet bool |