Added optinoal pprof support

This commit is contained in:
James Mills 2018-05-13 01:07:02 -07:00
parent 36f899d02a
commit d25d41ad2a
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6

View File

@ -8,6 +8,7 @@ import (
log "github.com/sirupsen/logrus"
"github.com/mmcloughlin/professor"
"github.com/prologic/msgbus"
)
@ -43,6 +44,10 @@ func main() {
os.Exit(0)
}
if debug {
go professor.Launch(":6060")
}
opts := msgbus.Options{
BufferLength: bufferLength,
MaxQueueSize: maxQueueSize,