~mariusor/motley

2f8abbbc2b5fc861c6a25b51410f66f03809fefd — Marius Orcsik 4 months ago b091b85
Added support for pperf
1 files changed, 6 insertions(+), 0 deletions(-)

M cmd/motley/main.go
M cmd/motley/main.go => cmd/motley/main.go +6 -0
@@ 4,6 4,8 @@ import (
	xerrors "errors"
	"fmt"
	"io"
	"net/http"
	_ "net/http/pprof"
	"net/url"
	"os"
	"path/filepath"


@@ 49,6 51,10 @@ func main() {
			"types": strings.Join([]string{string(config.StorageBoltDB), string(config.StorageBadger), string(config.StorageFS)}, ", "),
		},
	)
	// Server for pprof
	go func() {
		fmt.Println(http.ListenAndServe("localhost:6060", nil))
	}()

	conf := config.Options{}
	stores, err := loadArguments(&conf)