Documentation
¶
Index ¶
- Constants
- Variables
- func CloseAnalys()
- func GetNowTimeMs() int64
- func OnAppBeginBlockEnter(log log.Logger, height int64)
- func OnAppBeginBlockExit()
- func OnAppDeliverTxEnter()
- func OnAppDeliverTxExit()
- func OnAppEndBlockEnter()
- func OnAppEndBlockExit()
- func OnCommitEnter()
- func OnCommitExit()
- func RunFuncName() string
- func StartTxLog(module, oper string)
- func StopTxLog(module, oper string)
- type DbRecord
Constants ¶
View Source
const ( COMMIT_STATE_DB = "CommitStateDb" AVL = "iavl" BLOCK_FORMAT = "Block: Height<%d>, allCost<%dms>, evmCost<%dms>, Tx[ %s ]" TX_FORMAT = "{TxID: %d, allCost<%dms>, db:[read<%dms>, write<%dms>], evmCost<%dms>} " TX_DEBUG_FORMAT = "[oper: %s , callTimes<%d>, cost:<%dms>]" READ = 1 WRITE = 2 )
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"} )
Functions ¶
func CloseAnalys ¶
func CloseAnalys()
func GetNowTimeMs ¶
func GetNowTimeMs() int64
func OnAppBeginBlockEnter ¶
func OnAppBeginBlockExit ¶
func OnAppBeginBlockExit()
func OnAppDeliverTxEnter ¶
func OnAppDeliverTxEnter()
func OnAppDeliverTxExit ¶
func OnAppDeliverTxExit()
func OnAppEndBlockEnter ¶
func OnAppEndBlockEnter()
func OnAppEndBlockExit ¶
func OnAppEndBlockExit()
func OnCommitEnter ¶
func OnCommitEnter()
func OnCommitExit ¶
func OnCommitExit()
func RunFuncName ¶
func RunFuncName() string
func StartTxLog ¶
func StartTxLog(module, oper string)
Types ¶
Click to show internal directories.
Click to hide internal directories.