Skip to content

RUM-11948: Create Profiling Event schema#2912

Merged
ambushwork merged 1 commit into
feature/perfetto-profilingfrom
yl/profiling/create-event
Oct 3, 2025
Merged

RUM-11948: Create Profiling Event schema#2912
ambushwork merged 1 commit into
feature/perfetto-profilingfrom
yl/profiling/create-event

Conversation

@ambushwork

Copy link
Copy Markdown
Member

What does this PR do?

  • Add profiling event schema to generate ProfilingEvent
  • Add internal PerefettoResult to carry profiling result.

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

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/create-event branch 3 times, most recently from f49b410 to 2a9ee67 Compare October 3, 2025 10:52
@codecov-commenter

codecov-commenter commented Oct 3, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 71.02%. Comparing base (7020f11) to head (d314d68).
⚠️ Report is 993 commits behind head on feature/perfetto-profiling.

Files with missing lines Patch % Lines
...dog/android/profiling/internal/PerfettoProfiler.kt 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                      Coverage Diff                       @@
##           feature/perfetto-profiling    #2912      +/-   ##
==============================================================
- Coverage                       71.05%   71.02%   -0.04%     
==============================================================
  Files                             817      818       +1     
  Lines                           30059    30071      +12     
  Branches                         5024     5025       +1     
==============================================================
- Hits                            21357    21355       -2     
- Misses                           7327     7337      +10     
- Partials                         1375     1379       +4     
Files with missing lines Coverage Δ
...tadog/android/profiling/internal/PerfettoResult.kt 100.00% <100.00%> (ø)
...dog/android/profiling/internal/PerfettoProfiler.kt 96.23% <90.00%> (+0.67%) ⬆️

... 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 marked this pull request as ready for review October 3, 2025 11:38
@ambushwork
ambushwork requested review from a team as code owners October 3, 2025 11:38
0xnm
0xnm previously approved these changes Oct 3, 2025
@ambushwork
ambushwork merged commit cf4f5fb into feature/perfetto-profiling Oct 3, 2025
25 of 27 checks passed
@ambushwork
ambushwork deleted the yl/profiling/create-event branch October 3, 2025 14:51

private var profilingStarted: AtomicBoolean = AtomicBoolean(false)

private var profilingStartTime = 0L

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it's better to make this profilingStartTime volatile. It is set in the calling thread of start method and read on profilingExecutor thread.

No need to update this pr, can be done later.

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.

4 participants