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 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 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
}
Click to show internal directories.
Click to hide internal directories.