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

diagnostics: export system info #11567

Merged
merged 4 commits into from
Aug 12, 2024
Merged

diagnostics: export system info #11567

merged 4 commits into from
Aug 12, 2024

Conversation

dvovk
Copy link
Member

@dvovk dvovk commented Aug 12, 2024

Changes:

  • Collecting CPU and Memory usage info about all processes running on the machine
  • Running loop 5 times with 2 seconds delay and to calculate average
  • Sort by CPU usage
  • Write result to report file
  • Display totals for CPU and Memory usage to processes table
  • Display CPU usage by cores
  • Print CPU details to table

Cherry pick from:

- Collecting CPU and Memory usage info about all processes running on
the machine
- Running loop 5 times with 2 seconds delay and to calculate average
- Sort by CPU usage
- Write result to report file
Result:
![Screenshot 2024-08-07 at 18 40
08](https://github.com/user-attachments/assets/aac1264c-1eb9-4c8e-b6a6-7e248e37855a)
- Added totals for CPU and Memory usage to processes table
- Added CPU usage by cores

Example output:
![Screenshot 2024-08-08 at 12 46
17](https://github.com/user-attachments/assets/ec0897d0-81c8-4436-bb65-527363157e76)
Refactored table utils to have an option to generate table and return it
as string which will used for saving data to file.
Refactored printing cpu info:
- move CPU details to table
- move CPU usage next to details table
- refactor code
@dvovk dvovk added this to the 2.60.6-fixes milestone Aug 12, 2024
@dvovk dvovk requested a review from awskii August 12, 2024 09:24
@dvovk dvovk merged commit 250c70f into release/2.60 Aug 12, 2024
6 checks passed
@dvovk dvovk deleted the cp3 branch August 12, 2024 13:43
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