Documentation ¶
Index ¶
Constants ¶
This section is empty.
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 ¶
type AccountStats ¶
type AccountStats struct { AccountCount uint64 `json:"total_account_count"` AccountSizeMin float64 `json:"account_size_min"` AccountSize25thPercentile float64 `json:"account_size_25th_percentile"` AccountSizeMedian float64 `json:"account_size_median"` AccountSize75thPercentile float64 `json:"account_size_75th_percentile"` AccountSize95thPercentile float64 `json:"account_size_95th_percentile"` AccountSize99thPercentile float64 `json:"account_size_99th_percentile"` AccountSizeMax float64 `json:"account_size_max"` ServiceAccount *AccountInfo `json:"service_account,omitempty"` EVMAccount *AccountInfo `json:"evm_account,omitempty"` TopN []*AccountInfo `json:"largest_accounts"` }
type PayloadInfo ¶
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"` Counts uint64 `json:"counts"` ValueSizeTotal float64 `json:"value_size_total"` ValueSizeMin float64 `json:"value_size_min"` ValueSize25thPercentile float64 `json:"value_size_25th_percentile"` ValueSizeMedian float64 `json:"value_size_median"` ValueSize75thPercentile float64 `json:"value_size_75th_percentile"` ValueSize95thPercentile float64 `json:"value_size_95th_percentile"` ValueSize99thPercentile float64 `json:"value_size_99th_percentile"` ValueSizeMax float64 `json:"value_size_max"` SubTypes []RegisterStatsByTypes `json:"subtypes,omitempty"` }
type Stats ¶
type Stats struct { LedgerStats *complete.LedgerStats `json:",omitempty"` PayloadStats *PayloadStats }
Click to show internal directories.
Click to hide internal directories.