aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/evm/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/evm/main.go')
-rw-r--r--cmd/evm/main.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/cmd/evm/main.go b/cmd/evm/main.go
index 5f85f484e..e85d31d03 100644
--- a/cmd/evm/main.go
+++ b/cmd/evm/main.go
@@ -35,6 +35,18 @@ var (
Name: "debug",
Usage: "output full trace logs",
}
+ MemProfileFlag = cli.StringFlag{
+ Name: "memprofile",
+ Usage: "creates a memory profile at the given path",
+ }
+ CPUProfileFlag = cli.StringFlag{
+ Name: "cpuprofile",
+ Usage: "creates a CPU profile at the given path",
+ }
+ StatDumpFlag = cli.BoolFlag{
+ Name: "statdump",
+ Usage: "displays stack and heap memory information",
+ }
CodeFlag = cli.StringFlag{
Name: "code",
Usage: "EVM code",
@@ -93,6 +105,9 @@ func init() {
DumpFlag,
InputFlag,
DisableGasMeteringFlag,
+ MemProfileFlag,
+ CPUProfileFlag,
+ StatDumpFlag,
}
app.Commands = []cli.Command{
compileCommand,