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

Use slices of pointers in pprofile #11339

Merged
merged 10 commits into from
Oct 3, 2024

Conversation

dmathieu
Copy link
Member

@dmathieu dmathieu commented Oct 3, 2024

Description

All these slices of values have a potential to store large amounts of data, and should therefore be slices of pointers.

Link to tracking issue

Fixes #11281

cc @mx-psi @bogdandrutu

@dmathieu dmathieu marked this pull request as ready for review October 3, 2024 13:07
@dmathieu dmathieu requested a review from a team as a code owner October 3, 2024 13:07
@dmathieu dmathieu requested a review from songy23 October 3, 2024 13:07
@dmathieu
Copy link
Member Author

dmathieu commented Oct 3, 2024

I ended up turning all of them from values to pointers, as each of them looks like it could be big (link may be the only grey one).
I'm happy to revert any of them if you think they aren't appropriate.

Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.54%. Comparing base (4ace638) to head (402ca1a).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11339      +/-   ##
==========================================
+ Coverage   91.51%   91.54%   +0.03%     
==========================================
  Files         430      428       -2     
  Lines       20226    20230       +4     
==========================================
+ Hits        18509    18519      +10     
+ Misses       1342     1337       -5     
+ Partials      375      374       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bogdandrutu bogdandrutu merged commit 2d25853 into open-telemetry:main Oct 3, 2024
50 of 66 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 3, 2024
@dmathieu dmathieu deleted the profile-slices-ptrs branch October 3, 2024 14:59
jackgopack4 pushed a commit to jackgopack4/opentelemetry-collector that referenced this pull request Oct 8, 2024
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

All these slices of values have a potential to store large amounts of
data, and should therefore be slices of pointers.

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes open-telemetry#11281

cc @mx-psi @bogdandrutu
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.

Inefficient use of sliceOfValues in profiles data
2 participants