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

perf: use numbers instead of numeric strings in pprof labels #1831

Merged
merged 17 commits into from
Feb 6, 2023

Conversation

morrisonlevi
Copy link
Collaborator

@morrisonlevi morrisonlevi commented Dec 12, 2022

Description

Use numbers instead of numeric strings in pprof labels. This is more efficient, and may open the doors to having a global string table in the future, which could be used to create a global symbol table as well.

This pairs with DataDog/libdatadog#80.

This also simplifies some label strings from Cow<str> to &static str. It shouldn't be a difficult thing to change some day if we need to, but for now all label keys and units are static.

Readiness checklist

  • Changelog has been added to the release document.
  • Tests added for this feature/bug. I haven't written a test, but I did manually confirm that Code Hotspots and Endpoint Profiling are working, and that the profiles didn't have any numeric strings. This was on the symfony/demo.

Reviewer checklist

  • Appropriate labels assigned.
  • Milestone is set.

@morrisonlevi morrisonlevi added the profiling Relates to the Continuous Profiler label Dec 12, 2022
@morrisonlevi morrisonlevi added this to the 0.83.0 milestone Dec 12, 2022
The backend now has support for this.
Use WIP libdatadog endpoint update.
@bwoebi bwoebi modified the milestones: 0.83.0, 0.84.0 Jan 11, 2023
@morrisonlevi morrisonlevi changed the title Use numbers instead of numeric strings in pprof labels (update libdatadog) perf: use numbers instead of numeric strings in pprof labels Jan 17, 2023
@morrisonlevi morrisonlevi added the Overhead Relates to latency, CPU, or memory overhead label Jan 17, 2023
@morrisonlevi morrisonlevi modified the milestones: 0.84.0, future Feb 2, 2023
@morrisonlevi morrisonlevi modified the milestones: future, 0.85.0 Feb 3, 2023
@morrisonlevi morrisonlevi force-pushed the levi/numbers-in-pprof branch from 7250aa8 to 7d08640 Compare February 3, 2023 15:52
@morrisonlevi morrisonlevi marked this pull request as ready for review February 3, 2023 15:57
@morrisonlevi morrisonlevi requested a review from a team as a code owner February 3, 2023 15:57
@morrisonlevi morrisonlevi requested a review from a team as a code owner February 3, 2023 16:10
@realFlowControl realFlowControl merged commit ecbc4ab into master Feb 6, 2023
@realFlowControl realFlowControl deleted the levi/numbers-in-pprof branch February 6, 2023 10:19
@bwoebi bwoebi mentioned this pull request Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Overhead Relates to latency, CPU, or memory overhead profiling Relates to the Continuous Profiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants