-
Notifications
You must be signed in to change notification settings - Fork 661
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
[sonic-bootchart] add sonic-bootchart #2195
Conversation
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
This pull request introduces 1 alert when merging 8b76cb0 into 3197f39 - view on LGTM.com new alerts:
|
@qiluo-msft Could you please review? |
scripts/sonic-bootchart
Outdated
|
||
samples = int(bootchart_config["Bootchart"]["Samples"]) | ||
frequency = int(bootchart_config["Bootchart"]["Frequency"]) | ||
time = samples // frequency |
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.
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.
And add testcase.
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.
@qiluo-msft Added Config parsing error handling (expected key not found, non integer value and zero frequency) and corresponding unit tests
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@qiluo-msft could you please help to review and signoff following to review feedback handling? |
What I did
Implemented sonic-net/SONiC#1001
How I did it
Added a new sonic-bootchart script and added UT for it
How to verify it
Run on the switch. Depends on sonic-net/sonic-buildimage#11047
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)