Documentation
¶
Index ¶
- func ExpandHome(p string) string
- type API
- func (a *API) BlockProfile(file string, nsec uint) error
- func (a *API) CpuProfile(file string, nsec uint) error
- func (a *API) FreeOSMemory()
- func (a *API) GcStats() *debug.GCStats
- func (a *API) GoTrace(file string, nsec uint) error
- func (a *API) MemStats() *runtime.MemStats
- func (a *API) MutexProfile(file string, nsec uint) error
- func (a *API) SetBlockProfileRate(rate int)
- func (a *API) SetGCPercent(v int) int
- func (a *API) SetMutexProfileFraction(rate int)
- func (a *API) Stacks() string
- func (a *API) StartCPUProfile(file string) error
- func (a *API) StartGoTrace(file string) error
- func (a *API) StopCPUProfile() error
- func (a *API) StopGoTrace() error
- func (a *API) TraceBlockByNumber(height rpctypes.BlockNumber, config *evmtypes.TraceConfig) ([]*evmtypes.TxTraceResult, error)
- func (a *API) TraceTransaction(hash common.Hash, config *evmtypes.TraceConfig) (interface{}, error)
- func (a *API) WriteBlockProfile(file string) error
- func (a *API) WriteMemProfile(file string) error
- func (a *API) WriteMutexProfile(file string) error
- type HandlerT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandHome ¶
ExpandHome expands home directory in file paths. ~someuser/tmp will not be expanded.
Types ¶
type API ¶ added in v0.6.0
type API struct {
// contains filtered or unexported fields
}
API is the collection of tracing APIs exposed over the private debugging endpoint.
func NewAPI ¶ added in v0.6.0
NewAPI creates a new API definition for the tracing methods of the Ethereum service.
func (*API) BlockProfile ¶ added in v0.6.0
BlockProfile turns on goroutine profiling for nsec seconds and writes profile data to file. It uses a profile rate of 1 for most accurate information. If a different rate is desired, set the rate and write the profile manually.
func (*API) CpuProfile ¶ added in v0.6.0
CpuProfile turns on CPU profiling for nsec seconds and writes profile data to file.
func (*API) FreeOSMemory ¶ added in v0.6.0
func (a *API) FreeOSMemory()
FreeOSMemory forces a garbage collection.
func (*API) GoTrace ¶ added in v0.6.0
GoTrace turns on tracing for nsec seconds and writes trace data to file.
func (*API) MutexProfile ¶ added in v0.6.0
MutexProfile turns on mutex profiling for nsec seconds and writes profile data to file. It uses a profile rate of 1 for most accurate information. If a different rate is desired, set the rate and write the profile manually.
func (*API) SetBlockProfileRate ¶ added in v0.6.0
SetBlockProfileRate sets the rate of goroutine block profile data collection. rate 0 disables block profiling.
func (*API) SetGCPercent ¶ added in v0.6.0
SetGCPercent sets the garbage collection target percentage. It returns the previous setting. A negative value disables GC.
func (*API) SetMutexProfileFraction ¶ added in v0.6.0
SetMutexProfileFraction sets the rate of mutex profiling.
func (*API) Stacks ¶ added in v0.6.0
Stacks returns a printed representation of the stacks of all goroutines.
func (*API) StartCPUProfile ¶ added in v0.6.0
StartCPUProfile turns on CPU profiling, writing to the given file.
func (*API) StartGoTrace ¶ added in v0.6.0
StartGoTrace turns on tracing, writing to the given file.
func (*API) StopCPUProfile ¶ added in v0.6.0
StopCPUProfile stops an ongoing CPU profile.
func (*API) StopGoTrace ¶ added in v0.6.0
StopGoTrace stops an ongoing trace.
func (*API) TraceBlockByNumber ¶ added in v0.6.0
func (a *API) TraceBlockByNumber(height rpctypes.BlockNumber, config *evmtypes.TraceConfig) ([]*evmtypes.TxTraceResult, error)
TraceBlockByNumber returns the structured logs created during the execution of EVM and returns them as a JSON object.
func (*API) TraceTransaction ¶ added in v0.6.0
TraceTransaction returns the structured logs created during the execution of EVM and returns them as a JSON object.
func (*API) WriteBlockProfile ¶ added in v0.6.0
WriteBlockProfile writes a goroutine blocking profile to the given file.
func (*API) WriteMemProfile ¶ added in v0.6.0
WriteMemProfile writes an allocation profile to the given file. Note that the profiling rate cannot be set through the API, it must be set on the command line.
func (*API) WriteMutexProfile ¶ added in v0.6.0
WriteMutexProfile writes a goroutine blocking profile to the given file.