diff --git a/CMakeLists.txt b/CMakeLists.txt index 7328b02..fd210e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,9 @@ ament_auto_find_build_dependencies() set(msg_files "msg/PublishedTime.msg" - "msg/MissionRemainingDistanceTime.msg") + "msg/MissionRemainingDistanceTime.msg" + "msg/ResourceUsageReport.msg" +) set(msg_dependencies builtin_interfaces diff --git a/msg/ResourceUsageReport.msg b/msg/ResourceUsageReport.msg new file mode 100644 index 0000000..31d1709 --- /dev/null +++ b/msg/ResourceUsageReport.msg @@ -0,0 +1,14 @@ +std_msgs/Header header + +# Process identifier +uint32 pid + +# CPU usage metrics +float32 cpu_cores_utilized + +# 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