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

feat(system): create system usage message #12

Merged
merged 4 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading