Skip to content

Commit

Permalink
feat(system): create system usage message (#12)
Browse files Browse the repository at this point in the history
Signed-off-by: Mehmet Emin BAŞOĞLU <[email protected]>
  • Loading branch information
mebasoglu authored Jun 13, 2024
1 parent a009d74 commit 268f19d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions msg/ResourceUsageReport.msg
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 268f19d

Please sign in to comment.