diff --git a/packages/react-native/ReactCommon/react/nativemodule/webperformance/NativePerformance.cpp b/packages/react-native/ReactCommon/react/nativemodule/webperformance/NativePerformance.cpp
index eb4e9f6b5de..a0d53eba212 100644
--- a/packages/react-native/ReactCommon/react/nativemodule/webperformance/NativePerformance.cpp
+++ b/packages/react-native/ReactCommon/react/nativemodule/webperformance/NativePerformance.cpp
@@ -283,15 +283,6 @@ NativePerformance::getReactNativeStartupTiming(jsi::Runtime& /*rt*/) {
startupLogger.getRunJSBundleStartTime();
}
- if (!std::isnan(startupLogger.getRunJSBundleEndTime())) {
- result["executeJavaScriptBundleEntryPointEnd"] =
- startupLogger.getRunJSBundleEndTime();
- }
-
- if (!std::isnan(startupLogger.getInitReactRuntimeEndTime())) {
- result["initializeRuntimeEnd"] = startupLogger.getInitReactRuntimeEndTime();
- }
-
if (!std::isnan(startupLogger.getAppStartupEndTime())) {
result["endTime"] = startupLogger.getAppStartupEndTime();
}
diff --git a/packages/react-native/src/private/webapis/performance/Performance.js b/packages/react-native/src/private/webapis/performance/Performance.js
index 234d1b3594a..e4f640a732d 100644
--- a/packages/react-native/src/private/webapis/performance/Performance.js
+++ b/packages/react-native/src/private/webapis/performance/Performance.js
@@ -128,19 +128,15 @@ export default class Performance {
get rnStartupTiming(): ReactNativeStartupTiming {
const {
startTime,
- endTime,
initializeRuntimeStart,
- initializeRuntimeEnd,
executeJavaScriptBundleEntryPointStart,
- executeJavaScriptBundleEntryPointEnd,
+ endTime,
} = NativePerformance.getReactNativeStartupTiming();
return new ReactNativeStartupTiming({
startTime,
- endTime,
initializeRuntimeStart,
- initializeRuntimeEnd,
executeJavaScriptBundleEntryPointStart,
- executeJavaScriptBundleEntryPointEnd,
+ endTime,
});
}
diff --git a/packages/react-native/src/private/webapis/performance/ReactNativeStartupTiming.js b/packages/react-native/src/private/webapis/performance/ReactNativeStartupTiming.js
index 7ee24fc9929..0bb59bc63aa 100644
--- a/packages/react-native/src/private/webapis/performance/ReactNativeStartupTiming.js
+++ b/packages/react-native/src/private/webapis/performance/ReactNativeStartupTiming.js
@@ -16,9 +16,7 @@ type ReactNativeStartupTimingLike = {
startTime: ?number,
endTime: ?number,
initializeRuntimeStart: ?number,
- initializeRuntimeEnd: ?number,
executeJavaScriptBundleEntryPointStart: ?number,
- executeJavaScriptBundleEntryPointEnd: ?number,
};
// Read-only object with RN startup timing information.
@@ -29,22 +27,17 @@ export default class ReactNativeStartupTiming {
// 1. The `ReactNativeStartupTiming` is non-standard API
// 2. The timing information is relative to the time origin, which means `0` has valid meaning
#startTime: ?number;
- #endTime: ?number;
#initializeRuntimeStart: ?number;
- #initializeRuntimeEnd: ?number;
#executeJavaScriptBundleEntryPointStart: ?number;
- #executeJavaScriptBundleEntryPointEnd: ?number;
+ #endTime: ?number;
constructor(startUpTiming: ?ReactNativeStartupTimingLike) {
if (startUpTiming != null) {
this.#startTime = startUpTiming.startTime;
- this.#endTime = startUpTiming.endTime;
this.#initializeRuntimeStart = startUpTiming.initializeRuntimeStart;
- this.#initializeRuntimeEnd = startUpTiming.initializeRuntimeEnd;
this.#executeJavaScriptBundleEntryPointStart =
startUpTiming.executeJavaScriptBundleEntryPointStart;
- this.#executeJavaScriptBundleEntryPointEnd =
- startUpTiming.executeJavaScriptBundleEntryPointEnd;
+ this.#endTime = startUpTiming.endTime;
}
}
@@ -56,7 +49,7 @@ export default class ReactNativeStartupTiming {
}
/**
- * End time of the RN app startup process. This is equal to `executeJavaScriptBundleEntryPointEnd`.
+ * End time of the RN app startup process.
*/
get endTime(): ?number {
return this.#endTime;
@@ -69,26 +62,12 @@ export default class ReactNativeStartupTiming {
return this.#initializeRuntimeStart;
}
- /**
- * End time when RN runtime get initialized. This is the last marker before ends of the app startup process.
- */
- get initializeRuntimeEnd(): ?number {
- return this.#initializeRuntimeEnd;
- }
-
/**
* Start time of JS bundle being executed. This indicates the RN JS bundle is loaded and start to be evaluated.
*/
get executeJavaScriptBundleEntryPointStart(): ?number {
return this.#executeJavaScriptBundleEntryPointStart;
}
-
- /**
- * End time of JS bundle being executed. This indicates all the synchronous entry point jobs are finished.
- */
- get executeJavaScriptBundleEntryPointEnd(): ?number {
- return this.#executeJavaScriptBundleEntryPointEnd;
- }
}
setPlatformObject(ReactNativeStartupTiming);
diff --git a/packages/rn-tester/js/examples/Performance/PerformanceApiExample.js b/packages/rn-tester/js/examples/Performance/PerformanceApiExample.js
index 3b8180b36c7..cc8f8c4f296 100644
--- a/packages/rn-tester/js/examples/Performance/PerformanceApiExample.js
+++ b/packages/rn-tester/js/examples/Performance/PerformanceApiExample.js
@@ -72,12 +72,6 @@ function StartupTimingExample(): React.Node {
startUpTiming?.executeJavaScriptBundleEntryPointStart,
)} ms`}
- {`executeJavaScriptBundleEntryPointEnd: ${String(
- startUpTiming?.executeJavaScriptBundleEntryPointEnd,
- )} ms`}
- {`initializeRuntimeEnd: ${String(
- startUpTiming?.initializeRuntimeEnd,
- )} ms`}
{`endTime: ${String(startUpTiming?.endTime)} ms`}