checkpoint_collect_stats

package
v0.37.20-re-execute-block Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: AGPL-3.0 Imports: 26 Imported by: 0

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 AccountInfo struct {
	Address      string `json:"address"`
	PayloadCount uint64 `json:"payload_count"`
	PayloadSize  uint64 `json:"payload_size"`
}

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 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"`
	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
}

Jump to

Keyboard shortcuts

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