Documentation ¶
Index ¶
- Constants
- func PprofDownload(context *server.Context)
- func RegisterDynamicConfig()
- type ApolloClient
- type CustomChangeListener
- type OecConfig
- func (c *OecConfig) GetDynamicGpWeight() int
- func (c *OecConfig) GetEnableDynamicGp() bool
- func (c *OecConfig) GetGasLimitBuffer() uint64
- func (c *OecConfig) GetMaxGasUsedPerBlock() int64
- func (c *OecConfig) GetMaxTxNumPerBlock() int64
- func (c *OecConfig) GetMempoolFlush() bool
- func (c *OecConfig) GetMempoolForceRecheckGap() int64
- func (c *OecConfig) GetMempoolRecheck() bool
- func (c *OecConfig) GetMempoolSize() int
- func (c *OecConfig) SetDynamicGpWeight(value int)
- func (c *OecConfig) SetEnableDynamicGp(value bool)
- func (c *OecConfig) SetGasLimitBuffer(value uint64)
- func (c *OecConfig) SetMaxGasUsedPerBlock(value int64)
- func (c *OecConfig) SetMaxTxNumPerBlock(value int64)
- func (c *OecConfig) SetMempoolFlush(value bool)
- func (c *OecConfig) SetMempoolForceRecheckGap(value int64)
- func (c *OecConfig) SetMempoolRecheck(value bool)
- func (c *OecConfig) SetMempoolSize(value int)
- type PporfConfig
Constants ¶
View Source
const ( FlagEnableDynamic = "config.enable-dynamic" FlagMempoolRecheck = "mempool.recheck" FlagMempoolForceRecheckGap = "mempool.force_recheck_gap" FlagMempoolSize = "mempool.size" FlagMempoolFlush = "mempool.flush" FlagMaxTxNumPerBlock = "mempool.max_tx_num_per_block" FlagMaxGasUsedPerBlock = "mempool.max_gas_used_per_block" FlagGasLimitBuffer = "gas-limit-buffer" FlagEnableDynamicGp = "enable-dynamic-gp" FlagDynamicGpWeight = "dynamic-gp-weight" )
View Source
const ( FlagPprofAutoDump = "pprof-auto-dump" FlagPprofCollectInterval = "pprof-collect-interval" FlagPprofCpuTriggerPercentMin = "pprof-cpu-trigger-percent-min" FlagPprofCpuTriggerPercentDiff = "pprof-cpu-trigger-percent-diff" FlagPprofCpuTriggerPercentAbs = "pprof-cpu-trigger-percent-abs" FlagPprofMemTriggerPercentMin = "pprof-mem-trigger-percent-min" FlagPprofMemTriggerPercentDiff = "pprof-mem-trigger-percent-diff" FlagPprofMemTriggerPercentAbs = "pprof-mem-trigger-percent-abs" FlagPprofCoolDown = "pprof-cool-down" FlagPprofAbciElapsed = "pprof-trigger-abci-elapsed" FlagPprofUseCGroup = "pprof-use-cgroup" )
View Source
const FlagApollo = "config.apollo"
Variables ¶
This section is empty.
Functions ¶
func PprofDownload ¶ added in v0.19.6
PprofDownload auto dump pprof
func RegisterDynamicConfig ¶
func RegisterDynamicConfig()
Types ¶
type ApolloClient ¶
type ApolloClient struct { Namespace string *agollo.Client // contains filtered or unexported fields }
func NewApolloClient ¶
func NewApolloClient(oecConf *OecConfig) *ApolloClient
func (*ApolloClient) LoadConfig ¶
func (a *ApolloClient) LoadConfig() (loaded bool)
type CustomChangeListener ¶
type CustomChangeListener struct {
// contains filtered or unexported fields
}
func (*CustomChangeListener) OnChange ¶
func (c *CustomChangeListener) OnChange(changeEvent *storage.ChangeEvent)
func (*CustomChangeListener) OnNewestChange ¶
func (c *CustomChangeListener) OnNewestChange(event *storage.FullChangeEvent)
type OecConfig ¶
type OecConfig struct {
// contains filtered or unexported fields
}
func GetOecConfig ¶
func GetOecConfig() *OecConfig
func NewOecConfig ¶
func NewOecConfig() *OecConfig
func (*OecConfig) GetDynamicGpWeight ¶
func (*OecConfig) GetEnableDynamicGp ¶
func (*OecConfig) GetGasLimitBuffer ¶
func (*OecConfig) GetMaxGasUsedPerBlock ¶ added in v0.19.16
func (*OecConfig) GetMaxTxNumPerBlock ¶ added in v0.19.16
func (*OecConfig) GetMempoolFlush ¶ added in v0.19.16
func (*OecConfig) GetMempoolForceRecheckGap ¶
func (*OecConfig) GetMempoolRecheck ¶
func (*OecConfig) GetMempoolSize ¶
func (*OecConfig) SetDynamicGpWeight ¶
func (*OecConfig) SetEnableDynamicGp ¶
func (*OecConfig) SetGasLimitBuffer ¶
func (*OecConfig) SetMaxGasUsedPerBlock ¶ added in v0.19.16
func (*OecConfig) SetMaxTxNumPerBlock ¶ added in v0.19.16
func (*OecConfig) SetMempoolFlush ¶ added in v0.19.16
func (*OecConfig) SetMempoolForceRecheckGap ¶
func (*OecConfig) SetMempoolRecheck ¶
func (*OecConfig) SetMempoolSize ¶
type PporfConfig ¶ added in v0.19.6
type PporfConfig struct {
// contains filtered or unexported fields
}
func LoadPprofFromConfig ¶ added in v0.19.6
func LoadPprofFromConfig() *PporfConfig
Click to show internal directories.
Click to hide internal directories.