Skip to content

Add tracing helper functions for RNDT traces in C++ and Kotlin#55935

Closed
rubennorte wants to merge 1 commit intofacebook:mainfrom
rubennorte:export-D92061513
Closed

Add tracing helper functions for RNDT traces in C++ and Kotlin#55935
rubennorte wants to merge 1 commit intofacebook:mainfrom
rubennorte:export-D92061513

Conversation

@rubennorte
Copy link
Contributor

Summary:
Changelog: [internal]

This diff adds helper functions to the PerformanceTracer class for tracing performance events in React Native Developer Tools traces.

In Kotlin, new trace method overloads are added to PerformanceTracer that wrap a block of code and automatically measure and report its execution time. These use a try/finally pattern to ensure timing is captured correctly.

In C++, a new PerformanceTracerSection RAII class is added that automatically reports timing when the section goes out of scope. It supports optional track, track group, and color parameters, as well as variadic key-value properties for additional metadata.

Differential Revision: D92061513

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 5, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 5, 2026

@rubennorte has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92061513.

rubennorte added a commit to rubennorte/react-native that referenced this pull request Mar 5, 2026
…ook#55935)

Summary:

Changelog: [internal]

This diff adds helper functions to the PerformanceTracer class for tracing performance events in React Native Developer Tools traces.

In Kotlin, new `trace` method overloads are added to `PerformanceTracer` that wrap a block of code and automatically measure and report its execution time. These use a try/finally pattern to ensure timing is captured correctly.

In C++, a new `PerformanceTracerSection` RAII class is added that automatically reports timing when the section goes out of scope. It supports optional track, track group, and color parameters, as well as variadic key-value properties for additional metadata.

Reviewed By: sammy-SC

Differential Revision: D92061513
rubennorte added a commit to rubennorte/react-native that referenced this pull request Mar 5, 2026
…ook#55935)

Summary:

Changelog: [internal]

This diff adds helper functions to the PerformanceTracer class for tracing performance events in React Native Developer Tools traces.

In Kotlin, new `trace` method overloads are added to `PerformanceTracer` that wrap a block of code and automatically measure and report its execution time. These use a try/finally pattern to ensure timing is captured correctly.

In C++, a new `PerformanceTracerSection` RAII class is added that automatically reports timing when the section goes out of scope. It supports optional track, track group, and color parameters, as well as variadic key-value properties for additional metadata.

Reviewed By: sammy-SC

Differential Revision: D92061513
rubennorte added a commit to rubennorte/react-native that referenced this pull request Mar 5, 2026
…ook#55935)

Summary:
Pull Request resolved: facebook#55935

Changelog: [internal]

This diff adds helper functions to the PerformanceTracer class for tracing performance events in React Native Developer Tools traces.

In Kotlin, new `trace` method overloads are added to `PerformanceTracer` that wrap a block of code and automatically measure and report its execution time. These use a try/finally pattern to ensure timing is captured correctly.

In C++, a new `PerformanceTracerSection` RAII class is added that automatically reports timing when the section goes out of scope. It supports optional track, track group, and color parameters, as well as variadic key-value properties for additional metadata.

Reviewed By: sammy-SC

Differential Revision: D92061513
rubennorte added a commit to rubennorte/react-native that referenced this pull request Mar 5, 2026
…ook#55935)

Summary:
Pull Request resolved: facebook#55935

Changelog: [internal]

This diff adds helper functions to the PerformanceTracer class for tracing performance events in React Native Developer Tools traces.

In Kotlin, new `trace` method overloads are added to `PerformanceTracer` that wrap a block of code and automatically measure and report its execution time. These use a try/finally pattern to ensure timing is captured correctly.

In C++, a new `PerformanceTracerSection` RAII class is added that automatically reports timing when the section goes out of scope. It supports optional track, track group, and color parameters, as well as variadic key-value properties for additional metadata.

Reviewed By: sammy-SC

Differential Revision: D92061513
rubennorte added a commit to rubennorte/react-native that referenced this pull request Mar 5, 2026
…ook#55935)

Summary:

Changelog: [internal]

This diff adds helper functions to the PerformanceTracer class for tracing performance events in React Native Developer Tools traces.

In Kotlin, new `trace` method overloads are added to `PerformanceTracer` that wrap a block of code and automatically measure and report its execution time. These use a try/finally pattern to ensure timing is captured correctly.

In C++, a new `PerformanceTracerSection` RAII class is added that automatically reports timing when the section goes out of scope. It supports optional track, track group, and color parameters, as well as variadic key-value properties for additional metadata.

Reviewed By: sammy-SC

Differential Revision: D92061513
rubennorte added a commit to rubennorte/react-native that referenced this pull request Mar 5, 2026
…ook#55935)

Summary:

Changelog: [internal]

This diff adds helper functions to the PerformanceTracer class for tracing performance events in React Native Developer Tools traces.

In Kotlin, new `trace` method overloads are added to `PerformanceTracer` that wrap a block of code and automatically measure and report its execution time. These use a try/finally pattern to ensure timing is captured correctly.

In C++, a new `PerformanceTracerSection` RAII class is added that automatically reports timing when the section goes out of scope. It supports optional track, track group, and color parameters, as well as variadic key-value properties for additional metadata.

Reviewed By: sammy-SC

Differential Revision: D92061513
…ook#55935)

Summary:

Changelog: [internal]

This diff adds helper functions to the PerformanceTracer class for tracing performance events in React Native Developer Tools traces.

In Kotlin, new `trace` method overloads are added to `PerformanceTracer` that wrap a block of code and automatically measure and report its execution time. These use a try/finally pattern to ensure timing is captured correctly.

In C++, a new `PerformanceTracerSection` RAII class is added that automatically reports timing when the section goes out of scope. It supports optional track, track group, and color parameters, as well as variadic key-value properties for additional metadata.

Reviewed By: sammy-SC

Differential Revision: D92061513
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @rubennorte in 4f3f536

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

@react-native-bot react-native-bot added the Merged This PR has been merged. label Mar 6, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 6, 2026

This pull request has been merged in 4f3f536.

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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants