-
Notifications
You must be signed in to change notification settings - Fork 208
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
chore(swingset): add misc analysis tools #10037
base: master
Are you sure you want to change the base?
Conversation
Deploying agoric-sdk with Cloudflare Pages
|
aa23a16
to
71ebe36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very partial review; pausing for a meeting.
I worry that there's a lot here which won't ever be cleaned up and will make it harder to find a particular tool in the future, but it's probably better to have these than not.
I thought more on this over the weekend... what about organizing the utilities into subdirectories or prefixes that indicate whether they consume [SwingStore] SQLite files, slog files, or "other"? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm through all the Python scripts; next up is JavaScript.
This is a grab-bag of tools I've assembled over the last few years, to analyze slogfiles for various things (mostly timing and leaks). Some in JS, some in Python. I wanted to get them off my local hard drive and into the tree where other folks could benefit from them. * monitor-slog-block-time.py : I use this on a follower node to print a one-line summary of each block, from the slogfile * prune-transcripts.js : I run this on a copy of the swingstore DB to delete all the old transcript spans, since most of my analysis doesn't need them, and it reduces the size by about 90%. * follower-run-tools/ : I use these to measure size data about the original and pruned DB. These tools are not TSC or eslint -clean: they use @ ts-nocheck and an .eslintignore to suppress complaints. Thanks to @gibson042 for all the helpful improvements. Co-authored-by: Richard Gibson <[email protected]>
8005d8e
to
d50dd90
Compare
This is a grab-bag of tools I've assembled over the last few years, to analyze slogfiles for various things (mostly timing and leaks). Some in JS, some in Python. I wanted to get them off my local hard drive and into the tree where other folks could benefit from them.
monitor-slog-block-time.py : I use this on a follower node to print a one-line summary of each block, from the slogfile
prune-transcripts.js : I run this on a copy of the swingstore DB to delete all the old transcript spans, since most of my analysis doesn't need them, and it reduces the size by about 90%.
follower-run-tools/ : I use these to measure size data about the original and pruned DB.
These tools are not TSC or eslint -clean: they use @ ts-nocheck and an .eslintignore to suppress complaints.