Skip to content

Commit

Permalink
remove extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
MishkaMN committed Nov 20, 2024
1 parent 7772cbe commit ebb798c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Timestamp,PID,Process Name,CPU (%),Memory (%),Command Line,Total CPU (%)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Timestamp,PID,Process Name,CPU (%),Memory (%),Command Line,Total CPU (%)
2024-11-20 07:09:45.354,38596,python3,0.0,0.07703650664891687,python3 engineering_tools/monitor-ros-cpu.py,6.7
2024-11-20 07:09:46.358,38596,python3,0.0,0.07703650664891687,python3 engineering_tools/monitor-ros-cpu.py,0.1
2024-11-20 07:09:47.363,38596,python3,0.0,0.07703650664891687,python3 engineering_tools/monitor-ros-cpu.py,0.4
2024-11-20 07:09:48.368,38596,python3,2.0,0.07703650664891687,python3 engineering_tools/monitor-ros-cpu.py,0.6
2024-11-20 07:09:49.386,38596,python3,1.0,0.07703650664891687,python3 engineering_tools/monitor-ros-cpu.py,0.1
4 changes: 0 additions & 4 deletions engineering_tools/monitor-ros-cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ def is_ros_related_process(proc_info, cmdline):
if any(excl in name_lower or excl in cmdline_lower for excl in EXCLUDE_KEYWORDS):
return False

# Check if process is running from ROS path
if "/opt/ros/" in cmdline or "/opt/carma/" in cmdline:
return True

# Check for ROS-related keywords in process name and command line
return any(
keyword in name_lower or keyword in cmdline_lower for keyword in ROS_KEYWORDS
Expand Down

0 comments on commit ebb798c

Please sign in to comment.