Remove pprof
This commit is contained in:
parent
ac1e3075e2
commit
9664783eef
@ -24,7 +24,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"runtime/pprof"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
@ -1038,7 +1037,7 @@ func testStopHeadTracking(ctx context.Context, bc *beaconclient.BeaconClient, st
|
|||||||
|
|
||||||
time.Sleep(3 * time.Second)
|
time.Sleep(3 * time.Second)
|
||||||
endNum := runtime.NumGoroutine()
|
endNum := runtime.NumGoroutine()
|
||||||
pprof.Lookup("goroutine").WriteTo(os.Stdout, 1)
|
//pprof.Lookup("goroutine").WriteTo(os.Stdout, 1)
|
||||||
log.WithField("startNum", startGoRoutines).Info("Start Go routine number")
|
log.WithField("startNum", startGoRoutines).Info("Start Go routine number")
|
||||||
log.WithField("endNum", endNum).Info("End Go routine number")
|
log.WithField("endNum", endNum).Info("End Go routine number")
|
||||||
//Expect(endNum <= startGoRoutines).To(BeTrue())
|
//Expect(endNum <= startGoRoutines).To(BeTrue())
|
||||||
|
@ -73,7 +73,7 @@ func processProdHeadBlocks(bc *beaconclient.BeaconClient, expectedInserts, expec
|
|||||||
validateMetrics(bc, expectedInserts, expectedReorgs, expectedKnownGaps, expectedKnownGapsReprocessError)
|
validateMetrics(bc, expectedInserts, expectedReorgs, expectedKnownGaps, expectedKnownGapsReprocessError)
|
||||||
|
|
||||||
cancel()
|
cancel()
|
||||||
time.Sleep(4)
|
time.Sleep(4 * time.Second)
|
||||||
testStopSystemHeadTracking(ctx, bc)
|
testStopSystemHeadTracking(ctx, bc)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user