pprof middleware (#138)

Add pprof middleware, enabled by pprof directive.
This commit is contained in:
Miek Gieben 2016-04-28 10:26:58 +01:00
parent 7a8d943bcc
commit 2700eece2e
8 changed files with 130 additions and 4 deletions

View file

@ -3,10 +3,10 @@ package metrics
import (
"time"
"golang.org/x/net/context"
"github.com/miekg/coredns/middleware"
"github.com/miekg/dns"
"golang.org/x/net/context"
)
func (m Metrics) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {