Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command line tool to dump chain state size #65

Merged
merged 3 commits into from
Jun 17, 2024
Merged

Conversation

yzang2019
Copy link
Collaborator

@yzang2019 yzang2019 commented Jun 14, 2024

Describe your changes and provide context

This PR add a tool to dump a module size by prefix and also tells us total size.

Testing performed to validate your change

Example output:

root@ip-172-31-35-60:/home/ubuntu/sei-db/tools# seidb state-size -d ~/.sei/data/committer.db -m evm --height 82939158
Calculating for module: evm
Module evm total numKeys:4446893, total keySize:103482401, total valueSize:1461642400, totalSize: 1565124801
Module evm prefix breakdown: {
"01": 1848008,
"02": 1847960,
"03": 3970464,
"07": 22294760,
"08": 83968,
"09": 20992,
"0A": 169064,
"0B": 1306833685,
"0D": 50665984,
"0E": 73859936,
"15": 12262,
"16": 16,
"17": 35301
}

@yzang2019 yzang2019 requested a review from codchen June 14, 2024 17:29
@yzang2019 yzang2019 merged commit 2f1baf4 into main Jun 17, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants