checkpoint_collect_stats

package
v0.39.0-results Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2025 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NOTE: this constant is defined in github.com/onflow/cadence/runtime/storage.go
	// Use this contant directly from cadence runtime package after dependency is updated.
	AccountStorageKey = "stored"
)

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "checkpoint-collect-stats",
	Short: "collects stats on tries stored in a checkpoint, or payloads from a payloads file",
	Long: `checkpoint-collect-stats collects stats on tries stored in a checkpoint, or payloads from a payloads file.
Two kinds of input data are supported:
- checkpoint file(s) ("--checkpoint-dir" with optional "--state-commitment"), or
- payloads file ("--payload-filename")`,
	Run: run,
}

Functions

This section is empty.

Types

type AccountInfo added in v0.38.0

type AccountInfo struct {
	Address      string        `json:"address"`
	Format       accountFormat `json:"account_format"`
	PayloadCount uint64        `json:"payload_count"`
	PayloadSize  uint64        `json:"payload_size"`
}

type AccountStats added in v0.38.0

type AccountStats struct {
	FormatV1Count  int            `json:"account_format_v1_count"`
	FormatV2Count  int            `json:"account_format_v2_count"`
	ServiceAccount *AccountInfo   `json:"service_account,omitempty"`
	EVMAccount     *AccountInfo   `json:"evm_account,omitempty"`
	TopN           []*AccountInfo `json:"largest_accounts"`
	// contains filtered or unexported fields
}

type LedgerStats added in v0.38.0

type LedgerStats struct {
	LedgerStats  *complete.LedgerStats `json:",omitempty"`
	PayloadStats *PayloadStats
}

type PayloadInfo added in v0.38.0

type PayloadInfo struct {
	Address string `json:"address"`
	Key     string `json:"key"`
	Type    string `json:"type"`
	Size    uint64 `json:"size"`
}

type PayloadStats

type PayloadStats struct {
	TotalPayloadCount     uint64                 `json:"total_payload_count"`
	TotalPayloadSize      uint64                 `json:"total_payload_size"`
	TotalPayloadValueSize uint64                 `json:"total_payload_value_size"`
	StatsByTypes          []RegisterStatsByTypes `json:"stats_by_types"`
	TopN                  []PayloadInfo          `json:"largest_payloads"`
}

type RegisterStatsByTypes

type RegisterStatsByTypes struct {
	Type string `json:"type"`

	SubTypes []RegisterStatsByTypes `json:"subtypes,omitempty"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL