Skip to content

Better GZ_PROFILE instrumentation for rendering sensors#532

Merged
iche033 merged 1 commit intogazebosim:gz-sensors9from
ntfshard:better_profiling
Jul 2, 2025
Merged

Better GZ_PROFILE instrumentation for rendering sensors#532
iche033 merged 1 commit intogazebosim:gz-sensors9from
ntfshard:better_profiling

Conversation

@ntfshard
Copy link
Copy Markdown
Contributor

@ntfshard ntfshard commented Jul 2, 2025

🦟 Bug fix

Fixes #

Summary

Renderings sensors is a very powerful but also very controversial in terms of performance tool. In this patch I'd like to align profiler tooling for this type of sensors (some sensors already have desired instrumentation).
Now we can see callback execution time (copying is not free as expected) and publishing data (which is also some kind of copying).
And everything in between is a data conversion. I have some idea how to improve rtf, but it should be discussed first.

Also fixed some problems which came across (like to make CppCheck happy or similar)

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers
  • Was GenAI used to generate this PR? If so, make sure to add "Generated-by" to your commits. (See this policy for more info.)

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by and Generated-by messages.

Signed-off-by: Maksim Derbasov <ntfs.hard@gmail.com>
@ntfshard ntfshard requested a review from iche033 as a code owner July 2, 2025 16:29
@github-actions github-actions bot added the 🏛️ ionic Gazebo Ionic label Jul 2, 2025
@github-project-automation github-project-automation bot moved this from Inbox to In review in Core development Jul 2, 2025
@iche033 iche033 merged commit 76532a6 into gazebosim:gz-sensors9 Jul 2, 2025
14 of 15 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in Core development Jul 2, 2025
@iche033
Copy link
Copy Markdown
Contributor

iche033 commented Jul 2, 2025

@Mergifyio backport gz-sensors8

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 2, 2025

backport gz-sensors8

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Jul 2, 2025
Signed-off-by: Maksim Derbasov <ntfs.hard@gmail.com>
(cherry picked from commit 76532a6)

# Conflicts:
#	src/LogicalCameraSensor.cc
iche033 pushed a commit that referenced this pull request Jul 2, 2025
Signed-off-by: Maksim Derbasov <ntfs.hard@gmail.com>
(cherry picked from commit 76532a6)
Signed-off-by: Ian Chen <ichen@openrobotics.org>

# Conflicts:
#	src/LogicalCameraSensor.cc
iche033 pushed a commit that referenced this pull request Jul 2, 2025
Signed-off-by: Maksim Derbasov <ntfs.hard@gmail.com>
(cherry picked from commit 76532a6)
Signed-off-by: Ian Chen <ichen@openrobotics.org>

# Conflicts:
#	src/LogicalCameraSensor.cc
@ntfshard ntfshard deleted the better_profiling branch July 3, 2025 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏛️ ionic Gazebo Ionic

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants