Skip to content

Add Experimental annotation on Profiling APIs & Bug fix#3143

Merged
ambushwork merged 2 commits into
developfrom
yl/profiling-add-experimental-api
Jan 22, 2026
Merged

Add Experimental annotation on Profiling APIs & Bug fix#3143
ambushwork merged 2 commits into
developfrom
yl/profiling-add-experimental-api

Conversation

@ambushwork

Copy link
Copy Markdown
Member

What does this PR do?

  • Add Experimental annotation on Profiling APIs
  • Fix the bug when profiling manager callback is called with error, runningInstances collection is not cleaned, leading isRunning return true even if the profiler has stopped.

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)

@ambushwork
ambushwork force-pushed the yl/profiling-add-experimental-api branch from c576f53 to 4f7b4b6 Compare January 22, 2026 08:51
@ambushwork

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Jan 22, 2026

Copy link
Copy Markdown

🎯 Code Coverage
Patch Coverage: 100.00%
Overall Coverage: 66.04% (-0.05%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 85e32a3 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@ambushwork
ambushwork marked this pull request as ready for review January 22, 2026 09:17
@ambushwork
ambushwork requested a review from a team as a code owner January 22, 2026 09:17
@ambushwork
ambushwork force-pushed the yl/profiling-add-experimental-api branch from 4f7b4b6 to c6a2eba Compare January 22, 2026 09:29
@ambushwork
ambushwork force-pushed the yl/profiling-add-experimental-api branch from c6a2eba to 85e32a3 Compare January 22, 2026 10:15
* Copyright 2016-Present Datadog, Inc.
*/

@file:OptIn(ExperimentalProfilingApi::class)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

probably should be at the class level? alternatively we can opt in for the whole module https://kotlinlang.org/docs/opt-in-requirements.html#opt-in-a-module

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.94%. Comparing base (beacf35) to head (85e32a3).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3143      +/-   ##
===========================================
- Coverage    70.95%   70.94%   -0.01%     
===========================================
  Files          912      912              
  Lines        33519    33520       +1     
  Branches      5636     5636              
===========================================
- Hits         23783    23779       -4     
- Misses        8159     8169      +10     
+ Partials      1577     1572       -5     
Files with missing lines Coverage Δ
...og/android/profiling/DdProfilingContentProvider.kt 0.00% <ø> (ø)
...in/java/com/datadog/android/profiling/Profiling.kt 81.82% <ø> (ø)
...atadog/android/profiling/ProfilingConfiguration.kt 100.00% <100.00%> (ø)
...dog/android/profiling/internal/ProfilingFeature.kt 66.04% <100.00%> (ø)
...dog/android/profiling/internal/ProfilingStorage.kt 96.00% <ø> (ø)
...id/profiling/internal/perfetto/PerfettoProfiler.kt 92.77% <100.00%> (+0.09%) ⬆️

... and 35 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 a43d6bc into develop Jan 22, 2026
26 checks passed
@ambushwork
ambushwork deleted the yl/profiling-add-experimental-api branch January 22, 2026 12:57
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