Documentation ¶
Index ¶
- func GetHeapAllocsBytes() uint64
- type RemoteDebugger
- func (d *RemoteDebugger) RunScript(code []byte, arguments [][]byte) (value cadence.Value, scriptError error, processError error)
- func (d *RemoteDebugger) RunScriptAtBlockID(code []byte, arguments [][]byte, blockID flow.Identifier) (value cadence.Value, scriptError error, processError error)
- func (d *RemoteDebugger) RunTransaction(txBody *flow.TransactionBody) (txErr error, processError error)
- func (d *RemoteDebugger) RunTransactionAtBlockID(txBody *flow.TransactionBody, blockID flow.Identifier, regCachePath string) (txErr error, processError error)
- type RemoteStorageSnapshot
- type RemoteStorageSnapshotOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHeapAllocsBytes ¶ added in v0.27.0
func GetHeapAllocsBytes() uint64
GetHeapAllocsBytes returns the value of /gc/heap/allocs:bytes.
Types ¶
type RemoteDebugger ¶ added in v0.23.1
type RemoteDebugger struct {
// contains filtered or unexported fields
}
func NewRemoteDebugger ¶ added in v0.23.1
Warning : make sure you use the proper flow-go version, same version as the network you are collecting registers from, otherwise the execution might differ from the way runs on the network
func (*RemoteDebugger) RunScriptAtBlockID ¶ added in v0.23.1
func (d *RemoteDebugger) RunScriptAtBlockID( code []byte, arguments [][]byte, blockID flow.Identifier, ) ( value cadence.Value, scriptError error, processError error, )
func (*RemoteDebugger) RunTransaction ¶ added in v0.23.1
func (d *RemoteDebugger) RunTransaction( txBody *flow.TransactionBody, ) ( txErr error, processError error, )
RunTransaction runs the transaction given the latest sealed block data
func (*RemoteDebugger) RunTransactionAtBlockID ¶ added in v0.23.1
func (d *RemoteDebugger) RunTransactionAtBlockID( txBody *flow.TransactionBody, blockID flow.Identifier, regCachePath string, ) ( txErr error, processError error, )
RunTransaction runs the transaction and tries to collect the registers at the given blockID note that it would be very likely that block is far in the past and you can't find the trie to read the registers from. if regCachePath is empty, the register values won't be cached
type RemoteStorageSnapshot ¶ added in v0.30.0
type RemoteStorageSnapshot struct { Cache registerCache BlockID []byte BlockHeader *flow.Header // contains filtered or unexported fields }
RemoteStorageSnapshot provides a storage snapshot connected to a live execution node to read the registers.
func NewRemoteStorageSnapshot ¶ added in v0.30.0
func NewRemoteStorageSnapshot( grpcAddress string, opts ...RemoteStorageSnapshotOption, ) *RemoteStorageSnapshot
func (*RemoteStorageSnapshot) Close ¶ added in v0.30.0
func (snapshot *RemoteStorageSnapshot) Close() error
func (*RemoteStorageSnapshot) Get ¶ added in v0.30.0
func (snapshot *RemoteStorageSnapshot) Get( id flow.RegisterID, ) ( flow.RegisterValue, error, )
type RemoteStorageSnapshotOption ¶ added in v0.30.0
type RemoteStorageSnapshotOption func(*RemoteStorageSnapshot) *RemoteStorageSnapshot
A RemoteStorageSnapshotOption sets a configuration parameter for the remote snapshot
func WithBlockID ¶ added in v0.23.1
func WithBlockID(blockID flow.Identifier) RemoteStorageSnapshotOption
WithBlockID sets the blockID for the remote snapshot, if not used remote snapshot will use the latest sealed block
func WithCache ¶ added in v0.23.1
func WithCache(cache registerCache) RemoteStorageSnapshotOption
WithFileCache sets the output path to store register values so can be fetched from a file cache it loads the values from the cache upon object construction