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

[NO-TICKET] Bag of profiler cleanups #3990

Merged
merged 5 commits into from
Oct 11, 2024
Merged

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Oct 10, 2024

What does this PR do?

This PR collects the results of a quick round of cleanups I did on the profiler.

I recommend reviewing commit-by-commit.

Motivation:

A few of these were existing TODOs; others I spotted as I was going along.

Additional Notes:

N/A

How to test the change?

We have existing test coverage for the tweaked bits.

I'm pretty happy with the same refactoring that was applied to the
CpuAndWallTimeWorker, so I went ahead and did it for the ThreadContext.
At some point we thought we may expose this as a user setting, but
we never did, and we've been running with this setting enabled all the
time, so let's just get rid of it.
Prof-correctness has been updated to stop using `_native_is_running?` in
DataDog/prof-correctness#42 .
@ivoanjo ivoanjo requested a review from a team as a code owner October 10, 2024 16:28
@ivoanjo ivoanjo added profiling Involves Datadog profiling dev/internal Other internal work that does not need to be included in the changelog labels Oct 10, 2024
@pr-commenter
Copy link

pr-commenter bot commented Oct 10, 2024

Benchmarks

Benchmark execution time: 2024-10-10 17:00:44

Comparing candidate commit e84e400 in PR branch ivoanjo/profiler-cleanups with baseline commit 58b17f0 in branch master.

Found 1 performance improvements and 1 performance regressions! Performance is the same for 21 metrics, 2 unstable metrics.

scenario:profiler - Allocations (profiling enabled)

  • 🟩 throughput [+250345.468op/s; +259542.918op/s] or [+5.189%; +5.380%]

scenario:profiler - sample timeline=false

  • 🟥 throughput [-0.434op/s; -0.372op/s] or [-6.199%; -5.320%]

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.86%. Comparing base (58b17f0) to head (e84e400).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3990      +/-   ##
==========================================
- Coverage   97.87%   97.86%   -0.01%     
==========================================
  Files        1314     1314              
  Lines       78652    78636      -16     
  Branches     3909     3909              
==========================================
- Hits        76978    76957      -21     
- Misses       1674     1679       +5     

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

Copy link
Contributor

@AlexJF AlexJF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yey for cleanups 🎉

@ivoanjo ivoanjo merged commit 6399568 into master Oct 11, 2024
252 checks passed
@ivoanjo ivoanjo deleted the ivoanjo/profiler-cleanups branch October 11, 2024 15:34
@github-actions github-actions bot added this to the 2.5.0 milestone Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/internal Other internal work that does not need to be included in the changelog profiling Involves Datadog profiling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants