Skip to content

Commit 0eb1fb4

Browse files
committed
add pprof
1 parent d623b3f commit 0eb1fb4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmd/migration-checker/main.go

+8
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ import (
55
"encoding/hex"
66
"flag"
77
"fmt"
8+
"log"
89
"os"
910
"runtime"
1011
"sync"
1112
"sync/atomic"
1213
"time"
1314

15+
"net/http"
16+
_ "net/http/pprof"
17+
1418
"github.com/scroll-tech/go-ethereum/common"
1519
"github.com/scroll-tech/go-ethereum/core/types"
1620
"github.com/scroll-tech/go-ethereum/crypto"
@@ -38,6 +42,10 @@ func main() {
3842
)
3943
flag.Parse()
4044

45+
go func() {
46+
log.Println(http.ListenAndServe("0.0.0.0:6060", nil))
47+
}()
48+
4149
zkDb, err := leveldb.New(*zkDbPath, 1024, 128, "", true)
4250
panicOnError(err, "", "failed to open zk db")
4351
mptDb, err := leveldb.New(*mptDbPath, 1024, 128, "", true)

0 commit comments

Comments
 (0)