Documentation ¶
Index ¶
- Constants
- Variables
- func GetNowTimeMs() int64
- func InitializePprofDumper(logger log.Logger, dumpPath string, coolDownStr string, abciElapsed int64)
- func OnAppBeginBlockEnter(height int64)
- func OnAppDeliverTxEnter()
- func OnCommitDone()
- func RunFuncName() string
- func SetDynamicConfig(c IDynamicConfig)
- func StartTxLog(oper string)
- func StopTxLog(oper string)
- type DbRecord
- type IDynamicConfig
- type MockDynamicConfig
Constants ¶
View Source
const ( READ = 1 WRITE = 2 EVMALL = 3 UNKNOWN_TYPE = 4 EVM_FORMAT = "read<%dms>, write<%dms>, execute<%dms>" EVMCORE = "evmcore" )
View Source
const FlagEnableAnalyzer string = "enable-analyzer"
Variables ¶
View Source
var ( STATEDB_WRITE = []string{"AddBalance", "SubBalance", "SetNonce", "SetState", "SetCode", "AddLog", "AddPreimage", "AddRefund", "SubRefund", "AddAddressToAccessList", "AddSlotToAccessList", "PrepareAccessList", "AddressInAccessList", "Suicide", "CreateAccount", "ForEachStorage"} STATEDB_READ = []string{"SlotInAccessList", "GetBalance", "GetNonce", "GetCode", "GetCodeSize", "GetCodeHash", "GetState", "GetCommittedState", "GetRefund", "HasSuicided", "Snapshot", "RevertToSnapshot", "Empty", "Exist"} EVM_OPER = []string{EVMCORE} )
Functions ¶
func GetNowTimeMs ¶
func GetNowTimeMs() int64
func InitializePprofDumper ¶
func OnAppBeginBlockEnter ¶
func OnAppBeginBlockEnter(height int64)
func OnAppDeliverTxEnter ¶
func OnAppDeliverTxEnter()
func OnCommitDone ¶ added in v1.1.0
func OnCommitDone()
func RunFuncName ¶
func RunFuncName() string
func SetDynamicConfig ¶ added in v1.1.10
func SetDynamicConfig(c IDynamicConfig)
func StartTxLog ¶
func StartTxLog(oper string)
Types ¶
type DbRecord ¶
type DbRecord struct {
// contains filtered or unexported fields
}
func (*DbRecord) AddOperType ¶
func (*DbRecord) GetOperType ¶
type IDynamicConfig ¶ added in v1.1.10
type IDynamicConfig interface {
GetEnableAnalyzer() bool
}
type MockDynamicConfig ¶ added in v1.1.10
type MockDynamicConfig struct { }
func (MockDynamicConfig) GetEnableAnalyzer ¶ added in v1.1.10
func (c MockDynamicConfig) GetEnableAnalyzer() bool
Click to show internal directories.
Click to hide internal directories.