mirror of
https://github.com/status-im/react-native.git
synced 2025-02-11 08:56:44 +00:00
Summary: public Add information the times recorded by RCTPerformanceLogger to RCTPerfMonitor, tap the monitor to show a table view with the data. Reviewed By: jspahrsummers Differential Revision: D2595372 fb-gh-sync-id: dc3b73af71b6d7f258e4e5991116bbc6cedc21fb
30 lines
834 B
Objective-C
30 lines
834 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "RCTDefines.h"
|
|
|
|
typedef NS_ENUM(NSUInteger, RCTPLTag) {
|
|
RCTPLScriptDownload = 0,
|
|
RCTPLScriptExecution,
|
|
RCTPLNativeModuleInit,
|
|
RCTPLNativeModulePrepareConfig,
|
|
RCTPLNativeModuleInjectConfig,
|
|
RCTPLTTI,
|
|
RCTPLBundleSize,
|
|
RCTPLSize
|
|
};
|
|
|
|
void RCTPerformanceLoggerStart(RCTPLTag tag);
|
|
void RCTPerformanceLoggerEnd(RCTPLTag tag);
|
|
void RCTPerformanceLoggerSet(RCTPLTag tag, int64_t value);
|
|
NSArray *RCTPerformanceLoggerOutput(void);
|
|
NSArray *RCTPerformanceLoggerLabels(void);
|