Browse Source

Re-enable profiler.

Mariano Cano 7 năm trước cách đây
mục cha
commit
401fc20e96
1 tập tin đã thay đổi với 3 bổ sung và 0 xóa
  1. 3 0
      cmd/step-ca/main.go

+ 3 - 0
cmd/step-ca/main.go

@@ -13,6 +13,9 @@ import (
 	"strconv"
 	"strconv"
 	"time"
 	"time"
 
 
+	// Server profiler
+	_ "net/http/pprof"
+
 	"github.com/smallstep/certificates/authority"
 	"github.com/smallstep/certificates/authority"
 	"github.com/smallstep/certificates/commands"
 	"github.com/smallstep/certificates/commands"
 	"github.com/smallstep/cli/command"
 	"github.com/smallstep/cli/command"