mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-28 08:07:25 +08:00
Add support for JSC's sampling profiler on iOS for RN
Reviewed By: javache Differential Revision: D4107919 fbshipit-source-id: ecfe2cacdb78b857e461f7006b29e4d1fe1a1862
This commit is contained in:
committed by
Facebook Github Bot
parent
c2a55baf80
commit
9fc6204efc
23
React/Modules/JSCSamplingProfiler.h
Normal file
23
React/Modules/JSCSamplingProfiler.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* 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 "RCTBridgeModule.h"
|
||||
|
||||
@interface JSCSamplingProfiler : NSObject <RCTBridgeModule>
|
||||
|
||||
/**
|
||||
* Receives a JSON string containing the result of a JSC CPU Profiling run,
|
||||
* and sends them to the packager to be symbolicated and saved to disk.
|
||||
* It is safe to call this method from any thread.
|
||||
*/
|
||||
- (void)operationCompletedWithResults:(NSString *)results;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user