mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
60e60a9b3d
Summary: `_labelsForTags` is an array with string labels used only for local profiling, that we had to manually keep it in sync with `RCTPLTag`. Refactor so labels are assigned with switch instead. Changelog: [iOS] Refactor: Assign string label to each case in RCTPLTag enum for startup performance logging Reviewed By: fkgozali Differential Revision: D32889043 fbshipit-source-id: 81da592a160a31b91e78289be0990cc2ff960f29
30 lines
795 B
C
30 lines
795 B
C
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
typedef NS_ENUM(NSInteger, RCTPLTag) {
|
|
RCTPLScriptDownload = 0,
|
|
RCTPLScriptExecution,
|
|
RCTPLRAMBundleLoad,
|
|
RCTPLRAMStartupCodeSize,
|
|
RCTPLRAMStartupNativeRequires,
|
|
RCTPLRAMStartupNativeRequiresCount,
|
|
RCTPLRAMNativeRequires,
|
|
RCTPLRAMNativeRequiresCount,
|
|
RCTPLNativeModuleInit,
|
|
RCTPLNativeModuleMainThread,
|
|
RCTPLNativeModulePrepareConfig,
|
|
RCTPLNativeModuleMainThreadUsesCount,
|
|
RCTPLNativeModuleSetup,
|
|
RCTPLTurboModuleSetup,
|
|
RCTPLJSCWrapperOpenLibrary,
|
|
RCTPLBridgeStartup,
|
|
RCTPLTTI,
|
|
RCTPLBundleSize,
|
|
RCTPLReactInstanceInit,
|
|
RCTPLSize // This is used to count the size
|
|
};
|