Skip to content

Commit

Permalink
Expose pinned metrics through vm
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Jul 3, 2024
1 parent f3fe7e7 commit 90b3c0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib_libwasmvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ func (vm *VM) GetMetrics() (*types.Metrics, error) {
return api.GetMetrics(vm.cache)
}

// GetPinnedMetrics returns some internal metrics of pinned contracts for monitoring purposes.
// The order of entries is non-deterministic.
func (vm *VM) GetPinnedMetrics() (*types.PinnedMetrics, error) {
return api.GetPinnedMetrics(vm.cache)
}

// Instantiate will create a new contract based on the given Checksum.
// We can set the initMsg (contract "genesis") here, and it then receives
// an account and address and can be invoked (Execute) many times.
Expand Down

0 comments on commit 90b3c0d

Please sign in to comment.