aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/evm/main.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2017-05-23 15:34:04 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2017-05-23 16:17:55 +0800
commit3ee75bec9fd3a023b9636a9f09cce99dc487bfaa (patch)
tree1a3aa098de6ffd2ad0f4dbebc188741b88adecf3 /cmd/evm/main.go
parent04b668b2325e48774aaa6859213c72598fa818fa (diff)
downloaddexon-3ee75bec9fd3a023b9636a9f09cce99dc487bfaa.tar
dexon-3ee75bec9fd3a023b9636a9f09cce99dc487bfaa.tar.gz
dexon-3ee75bec9fd3a023b9636a9f09cce99dc487bfaa.tar.bz2
dexon-3ee75bec9fd3a023b9636a9f09cce99dc487bfaa.tar.lz
dexon-3ee75bec9fd3a023b9636a9f09cce99dc487bfaa.tar.xz
dexon-3ee75bec9fd3a023b9636a9f09cce99dc487bfaa.tar.zst
dexon-3ee75bec9fd3a023b9636a9f09cce99dc487bfaa.zip
cmd/evm: added mem/cpu profiling
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,