Added optinoal pprof support
This commit is contained in:
parent
36f899d02a
commit
d25d41ad2a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue