diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2017-05-23 15:34:04 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2017-05-23 16:17:55 +0800 |
commit | 3ee75bec9fd3a023b9636a9f09cce99dc487bfaa (patch) | |
tree | 1a3aa098de6ffd2ad0f4dbebc188741b88adecf3 /cmd/evm/main.go | |
parent | 04b668b2325e48774aaa6859213c72598fa818fa (diff) | |
download | go-tangerine-3ee75bec9fd3a023b9636a9f09cce99dc487bfaa.tar.gz go-tangerine-3ee75bec9fd3a023b9636a9f09cce99dc487bfaa.tar.zst go-tangerine-3ee75bec9fd3a023b9636a9f09cce99dc487bfaa.zip |
cmd/evm: added mem/cpu profiling
Diffstat (limited to 'cmd/evm/main.go')
-rw-r--r-- | cmd/evm/main.go | 15 |
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, |