Skip to content

Add TimeseriesSessionCollector with memory and CPU collection#2884

Draft
barboraplasovska wants to merge 2 commits into
bplasovska/ts-pod/add-delta-encoderfrom
bplasovska/ts-pod/add-timeseries-session-collector
Draft

Add TimeseriesSessionCollector with memory and CPU collection#2884
barboraplasovska wants to merge 2 commits into
bplasovska/ts-pod/add-delta-encoderfrom
bplasovska/ts-pod/add-timeseries-session-collector

Conversation

@barboraplasovska
Copy link
Copy Markdown
Contributor

@barboraplasovska barboraplasovska commented May 5, 2026

What and why?

Adds TimeseriesSessionCollector, the core sampling engine. Uses a DispatchSourceTimer at 1Hz to collect memory (phys_footprint via task_info) and CPU (Mach thread ticks summed across threads; nil on watchOS). Every 30-sample batch is flushed as a single event. A coin flip at session start decides whether the session emits the full array schema or the delta-encoded schema, so the backend receives both formats across the fleet.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes
  • Add Objective-C interface for public APIs - see our guidelines (internal)
  • Run make api-surface when adding new APIs

Copy link
Copy Markdown
Contributor Author

barboraplasovska commented May 5, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@barboraplasovska barboraplasovska changed the title RUM-13949 add TimeseriesSessionCollector with memory and CPU collection Add TimeseriesSessionCollector with memory and CPU collection May 5, 2026
@barboraplasovska barboraplasovska force-pushed the bplasovska/ts-pod/add-delta-encoder branch from fd236f5 to 7200a2a Compare May 13, 2026 14:04
@barboraplasovska barboraplasovska force-pushed the bplasovska/ts-pod/add-timeseries-session-collector branch from 0923e06 to c6e2b36 Compare May 13, 2026 14:04
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.

1 participant