aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2020-06-17 19:05:19 -0400
committerDeterminant <tederminant@gmail.com>2020-06-17 19:05:19 -0400
commit07a9f9db09f7ade1be5a90197c46fde2e5245fea (patch)
treee7f302305264a95e8288a82d71a67a49b06c961b
parent6a33e292321a38ad07bd4e19459896e5c8d532d1 (diff)
add CPU profiling APIv0.2.5
-rw-r--r--plugin/evm/vm.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index bd8f9a4..4fa2267 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -32,6 +32,7 @@ import (
"github.com/ava-labs/gecko/snow/choices"
"github.com/ava-labs/gecko/snow/consensus/snowman"
"github.com/ava-labs/gecko/utils/timer"
+ "github.com/ava-labs/gecko/api/admin"
commonEng "github.com/ava-labs/gecko/snow/engine/common"
)
@@ -362,6 +363,7 @@ func (vm *VM) CreateHandlers() map[string]*commonEng.HTTPHandler {
handler.RegisterName("snowman", &SnowmanAPI{vm})
handler.RegisterName("web3", &Web3API{})
handler.RegisterName("debug", &DebugAPI{vm})
+ handler.RegisterName("admin", &admin.Performance{})
return map[string]*commonEng.HTTPHandler{
"/rpc": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: newIPFilter(handler)},