From 07a9f9db09f7ade1be5a90197c46fde2e5245fea Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 17 Jun 2020 19:05:19 -0400 Subject: add CPU profiling API --- plugin/evm/vm.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugin/evm') 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)}, -- cgit v1.2.3-70-g09d2