Skip to content

Conversation

KingCol13
Copy link
Contributor

Fixes #684

Looking through samply-symbols/src/shared.rs I was wondering if there's anything else worth breaking out for use when writing profiles. For example I used the ELF part of relative_base_address (although this is quite small so I'm not sure this function in particular is worth it).

@mstange
Copy link
Owner

mstange commented Oct 18, 2025

Thank you! I agree, relative_base_address is the one other thing that came to mind. Maybe we should also add a samply-object crate, and then move debug_id_for_object and relative_address_base into it? Then samply-debugid doesn't need a dependency on object. We could even make samply-object define an ObjectExt trait if we wanted.

@mstange
Copy link
Owner

mstange commented Oct 18, 2025

I'll merge this as-is, but let me know your thoughts.

@mstange mstange merged commit a84ae25 into mstange:main Oct 18, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split out debugid_utils into crate

2 participants