Skip to content

Fix continuous profiling back-to-back with app launch by inserting a cooldown window#3334

Merged
ambushwork merged 1 commit into
feature/continuous-profilingfrom
yl/profiling/fix-continuous-profiling-cycle
Apr 2, 2026
Merged

Fix continuous profiling back-to-back with app launch by inserting a cooldown window#3334
ambushwork merged 1 commit into
feature/continuous-profilingfrom
yl/profiling/fix-continuous-profiling-cycle

Conversation

@ambushwork

Copy link
Copy Markdown
Member

What does this PR do?

Before this PR the second active window of continuous profiling is launched immediately after app-launch profiling, which causes some back-to-back issue.

This PR fixes it by inserting a cooldown window after app launch profiling has completed as RFC described.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@datadog-prod-us1-3

This comment has been minimized.

@ambushwork
ambushwork force-pushed the yl/profiling/fix-continuous-profiling-cycle branch from a2ec138 to 6c27db8 Compare April 2, 2026 14:27
@ambushwork
ambushwork marked this pull request as ready for review April 2, 2026 15:02
@ambushwork
ambushwork requested review from a team as code owners April 2, 2026 15:02
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.48%. Comparing base (d1234e5) to head (6c27db8).

Additional details and impacted files
@@                       Coverage Diff                        @@
##           feature/continuous-profiling    #3334      +/-   ##
================================================================
- Coverage                         71.52%   71.48%   -0.04%     
================================================================
  Files                               948      948              
  Lines                             35038    35039       +1     
  Branches                           5937     5937              
================================================================
- Hits                              25060    25045      -15     
- Misses                             8313     8318       +5     
- Partials                           1665     1676      +11     
Files with missing lines Coverage Δ
...profiling/internal/ContinuousProfilingScheduler.kt 94.64% <100.00%> (+0.10%) ⬆️

... and 34 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ambushwork
ambushwork merged commit 5ee4826 into feature/continuous-profiling Apr 2, 2026
26 checks passed
@ambushwork
ambushwork deleted the yl/profiling/fix-continuous-profiling-cycle branch April 2, 2026 15:30
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.

3 participants