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

more processes #2469

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open

more processes #2469

wants to merge 6 commits into from

Conversation

MishkaMN
Copy link
Contributor

@MishkaMN MishkaMN commented Nov 20, 2024

PR Details

Description

Previously in #2467, cpu usage script was merged.
It captured only few keywords.
This PR updates the code to capture the keywords more elegantly and few more keywords as well.
With this the usage shows slightly higher; hence, slightly accurate. However, it didn't increase that much significantly which makes sense.

Related GitHub Issue

NA

Related Jira Key

https://usdot-carma.atlassian.net/browse/ARC-255

Motivation and Context

Discovered during creating plot for the usage.

How Has This Been Tested?

Tested on CDASIM run
Before:
cpu_usage_ros2_nodes_2024_11_19-01_41_49_system_usage

After (memory usage went down because I closed several orphan rviz windows. And the bump in the end is extra scripts running to save logs that we used in CP VRU use case):
image

Types of changes

  • Defect fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that cause existing functionality to change)

Checklist:

  • I have added any new packages to the sonar-scanner.properties file
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@MishkaMN MishkaMN self-assigned this Nov 20, 2024
@MishkaMN MishkaMN added the enhancement New feature or request label Nov 20, 2024
@MishkaMN MishkaMN marked this pull request as ready for review November 20, 2024 07:16
Copy link

sonarcloud bot commented Nov 20, 2024

"node",
"rviz",
"rqt",
"ros2 launch",
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Shouldn't need ros2 launch since ros2 is already a keyword

cmdline_lower = cmdline.lower()

# Check exclusions first
if any(excl in name_lower or excl in cmdline_lower for excl in EXCLUDE_KEYWORDS):
Copy link
Contributor

Choose a reason for hiding this comment

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

If there is an excluded keyword in the process and also a ROS keyword this would still return false, is that the desired behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants