Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@pscott
Copy link
Contributor

@pscott pscott commented Mar 13, 2020

The goal of this PR is to add some useful information to the benchmarking-cli output.

  • Accurately track db reads / writes
  • Send the statistics to the benchmarking-cli and output it in CSV format

Before merging:

  • Remove the code that exposes the benchmarking pallet so that it doesn't get added to master.

In order to pass the UsageInfo data from /frame/benchmarking crate to the /utils/frame/benchmarking-cli crate, and use the UsageInfo struct in sp-state-machine and sp-externalities, I had to create a new primitive called sp-stats for this very purpose. Let me know if there's any other way of doing so.

I also merged in Cheme's PR , and then reverted the merge using git revert -m 1 COMMIT. Hope this is the proper way to do it.

Scott Piriou and others added 28 commits March 5, 2020 19:27
@pscott pscott added A3-in_progress Pull request is in progress. No review needed at this stage. B0-silent Changes should not be mentioned in any release notes labels Mar 13, 2020
@pscott pscott added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Mar 18, 2020
@pscott pscott requested review from NikVolf and bkchr March 18, 2020 17:31
bkchr
bkchr previously requested changes Mar 19, 2020
@shawntabrizi shawntabrizi mentioned this pull request Mar 20, 2020
12 tasks
@pscott pscott changed the title Add statistics to bencharking-cli output Add statistics to benchmarking-cli output Mar 26, 2020
@pscott pscott requested a review from bkchr March 29, 2020 16:56
@pscott pscott dismissed bkchr’s stale review March 31, 2020 13:42

Review has been addressed

@pscott
Copy link
Contributor Author

pscott commented Mar 31, 2020

This PR is ready for review (and merge). I've removed the code that exposed the Benchmark pallet. @bkchr @NikVolf :D

@NikVolf
Copy link
Contributor

NikVolf commented Mar 31, 2020

can you rebase without any @cheme code in the diff?

}

/// Merge state machine usage info.
pub fn merge_sm(&self, info: sp_state_machine::UsageInfo) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this something you changed @pscott
or it was part of @cheme merged pr?

@NikVolf
Copy link
Contributor

NikVolf commented Mar 31, 2020

Can we have at least simple test which shows that stats are being collected?

@pscott
Copy link
Contributor Author

pscott commented Apr 1, 2020

Closed in favor of #5483 :)

@pscott pscott closed this Apr 1, 2020
@bkchr bkchr deleted the scott_add_usage_info branch April 1, 2020 10:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants