feat(lotus-sim): allow profile info
This commit is contained in:
parent
95cf577447
commit
5d7b7ce5c1
@ -6,6 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
"syscall"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -229,6 +230,8 @@ var infoCommitGasSimCommand = &cli.Command{
|
|||||||
}
|
}
|
||||||
defer node.Close()
|
defer node.Close()
|
||||||
|
|
||||||
|
go profileOnSignal(cctx, syscall.SIGUSR2)
|
||||||
|
|
||||||
sim, err := node.LoadSim(cctx.Context, cctx.String("simulation"))
|
sim, err := node.LoadSim(cctx.Context, cctx.String("simulation"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user