From eef653e0c8ec7dec8199a909cce26ea0fa7eb206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Emin=20BA=C5=9EO=C4=9ELU?= Date: Thu, 6 Jun 2024 14:03:24 +0300 Subject: [PATCH] refactor: change message name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mehmet Emin BAŞOĞLU --- CMakeLists.txt | 2 +- msg/ResourceUsageReport.msg | 15 +++++++++++++++ msg/SystemUsage.msg | 5 ----- 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 msg/ResourceUsageReport.msg delete mode 100644 msg/SystemUsage.msg diff --git a/CMakeLists.txt b/CMakeLists.txt index 42ad6bc..fd210e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ ament_auto_find_build_dependencies() set(msg_files "msg/PublishedTime.msg" "msg/MissionRemainingDistanceTime.msg" - "msg/SystemUsage.msg" + "msg/ResourceUsageReport.msg" ) set(msg_dependencies diff --git a/msg/ResourceUsageReport.msg b/msg/ResourceUsageReport.msg new file mode 100644 index 0000000..fd68a82 --- /dev/null +++ b/msg/ResourceUsageReport.msg @@ -0,0 +1,15 @@ +std_msgs/Header header + +# Process identifier +uint32 pid + +# CPU usage metrics +float32 cpu_usage_percentage + +# Memory usage metrics for the whole system +uint64 total_memory_bytes +uint64 free_memory_bytes + +# Memory usage metrics for the process +uint64 used_memory_bytes +float32 memory_usage_percentage diff --git a/msg/SystemUsage.msg b/msg/SystemUsage.msg deleted file mode 100644 index 4823f90..0000000 --- a/msg/SystemUsage.msg +++ /dev/null @@ -1,5 +0,0 @@ -std_msgs/Header header -uint32 pid -float32 cpu_usage_rate -float32 mem_usage_rate -uint64 mem_usage_kib