From 43671d96f6e609229211557efc0d6e2379006552 Mon Sep 17 00:00:00 2001 From: Shen Li Date: Sun, 6 Sep 2015 23:40:02 +0800 Subject: [PATCH] tidb: Add some comments Fix golint errors --- tidb.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tidb.go b/tidb.go index e8887633ed..fea0c5e67f 100644 --- a/tidb.go +++ b/tidb.go @@ -15,6 +15,7 @@ package tidb import ( "net/http" + // For pprof _ "net/http/pprof" "strings" "sync" @@ -73,8 +74,10 @@ var ( domap = &domainMap{ domains: map[string]*domain.Domain{}, } - stores = make(map[string]kv.Driver) - Debug = true + stores = make(map[string]kv.Driver) + // Debug is the switch for pprof. If Debug is true, tidb will start with pprof on. + Debug = true + // PprofAddr is the pprof url. PprofAddr = "localhost:8888" )