Skip to content

Split stopTracingAndCollectEvents#48795

Closed
hoxyq wants to merge 2 commits into
facebook:mainfrom
hoxyq:export-D68331485
Closed

Split stopTracingAndCollectEvents#48795
hoxyq wants to merge 2 commits into
facebook:mainfrom
hoxyq:export-D68331485

Conversation

@hoxyq
Copy link
Copy Markdown
Contributor

@hoxyq hoxyq commented Jan 20, 2025

Summary:

Changelog: [Internal]

Splitting PerformanceTracer::stopTracingAndCollectEvents() into 2 separate methods.

Once we add logic for starting and stopping tracing on InstanceAgent:

  • We would need to stop tracing everywhere synchronously
  • Populate data sources in `PerformanceTracer, like JavaScript samples
  • Collect all events from different data sources in one payload via PerformanceTracer::collectEvents()

Differential Revision: D68331485

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jan 20, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D68331485

hoxyq added 2 commits January 23, 2025 07:13
Summary:

# Changelog: [Internal]

This is the pre-requisite before adding a formatter for conversion from Hermes format-agnostic API for JavaScript samples to Trace Events.

This struct will probably be used a lot around this module and big enough for a separate header.

Reviewed By: huntie

Differential Revision: D68104202
Summary:

# Changelog: [Internal]

Splitting `PerformanceTracer::stopTracingAndCollectEvents()` into 2 separate methods.

Once we add logic for starting and stopping tracing on `InstanceAgent`:
- We would need to stop tracing everywhere synchronously
- Populate data sources in `PerformanceTracer`, like JavaScript samples
- Collect all events from different data sources in one payload via `PerformanceTracer::collectEvents()`

Differential Revision: D68331485
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D68331485

hoxyq added a commit to hoxyq/react-native that referenced this pull request Jan 23, 2025
Summary:
Pull Request resolved: facebook#48795

# Changelog: [Internal]

Splitting `PerformanceTracer::stopTracingAndCollectEvents()` into 2 separate methods.

Once we add logic for starting and stopping tracing on `InstanceAgent`:
- We would need to stop tracing everywhere synchronously
- Populate data sources in `PerformanceTracer`, like JavaScript samples
- Collect all events from different data sources in one payload via `PerformanceTracer::collectEvents()`

Differential Revision: D68331485
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 24, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in df4d9d1.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @hoxyq in df4d9d1

When will my fix make it into a release? | How to file a pick request?

ghost pushed a commit to discord/react-native that referenced this pull request Jul 29, 2025
Summary:
Pull Request resolved: facebook#48795

# Changelog: [Internal]

Splitting `PerformanceTracer::stopTracingAndCollectEvents()` into 2 separate methods.

Once we add logic for starting and stopping tracing on `InstanceAgent`:
- We would need to stop tracing everywhere synchronously
- Populate data sources in `PerformanceTracer`, like JavaScript samples
- Collect all events from different data sources in one payload via `PerformanceTracer::collectEvents()`

Reviewed By: huntie

Differential Revision: D68331485

fbshipit-source-id: 0d6b21a522d841f7f734e2fad2e0fc533097fdee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants