Skip to content

Update profiling telemetry duration, add callback delay data#3284

Merged
ambushwork merged 1 commit into
developfrom
yl/profiling/update-telemetry-end-time
Mar 25, 2026
Merged

Update profiling telemetry duration, add callback delay data#3284
ambushwork merged 1 commit into
developfrom
yl/profiling/update-telemetry-end-time

Conversation

@ambushwork

@ambushwork ambushwork commented Mar 24, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Currently the duration in profiling telemetry data measures the duration from the time when PerfettoProfiler.start to ProfilingMangaer callback is called, this is composed by 3 parts:

  • Delay for starting the OS profiler
  • Effective profiling duration
  • Delay for the result post-processing of ProfilingManager

In this case the duration data in telemetry is always bigger than the profile duration that we measure in the backend. To be closer to the effective profiling duration, This PR removes the third part - "Delay for the result post-processing" by mark the end time once PerfettoProfiler.stop is called, (it is still not the accurate effective profiling duration since it still contains the delay of starting and introduce the negative delay of stopping the profiler though). The callback time is still preserved so that we can have data about how much the delay that post-processing introduces.

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/update-telemetry-end-time branch from ae3c10d to 644875b Compare March 24, 2026 10:14
@datadog-prod-us1-4

This comment has been minimized.

@ambushwork
ambushwork force-pushed the yl/profiling/update-telemetry-end-time branch from 644875b to e4d8818 Compare March 24, 2026 11:56
@ambushwork

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e4d881866b

ℹ️ 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".

@ambushwork
ambushwork force-pushed the yl/profiling/update-telemetry-end-time branch from e4d8818 to 6ae5050 Compare March 24, 2026 12:55
@ambushwork
ambushwork force-pushed the yl/profiling/update-telemetry-end-time branch from 6ae5050 to d9def31 Compare March 25, 2026 08:48
@ambushwork
ambushwork marked this pull request as ready for review March 25, 2026 08:50
@ambushwork
ambushwork requested review from a team as code owners March 25, 2026 08:50

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d9def31688

ℹ️ 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".

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.47%. Comparing base (b3abae6) to head (d9def31).
⚠️ Report is 13 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3284      +/-   ##
===========================================
- Coverage    71.63%   71.47%   -0.16%     
===========================================
  Files          943      943              
  Lines        34815    34820       +5     
  Branches      5899     5899              
===========================================
- Hits         24937    24886      -51     
- Misses        8244     8273      +29     
- Partials      1634     1661      +27     
Files with missing lines Coverage Δ
...id/profiling/internal/perfetto/PerfettoProfiler.kt 94.90% <100.00%> (+4.58%) ⬆️

... and 37 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 d16c503 into develop Mar 25, 2026
26 checks passed
@ambushwork
ambushwork deleted the yl/profiling/update-telemetry-end-time branch March 25, 2026 10:05
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