mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
[ReactNative] Add JSC profiler to Dev Menu
Summary: Add JSC profiler to the dev menu and rename the pre-existent one to systrace. For now it just outputs to the console, but a better workflow is on the way.
This commit is contained in:
@@ -314,7 +314,7 @@ RCT_EXPORT_MODULE()
|
||||
self.liveReloadEnabled = !_liveReloadEnabled;
|
||||
}]];
|
||||
|
||||
NSString *profilingTitle = RCTProfileIsProfiling() ? @"Stop Profiling" : @"Start Profiling";
|
||||
NSString *profilingTitle = RCTProfileIsProfiling() ? @"Stop Systrace" : @"Start Systrace";
|
||||
[items addObject:[[RCTDevMenuItem alloc] initWithTitle:profilingTitle handler:^{
|
||||
self.profilingEnabled = !_profilingEnabled;
|
||||
}]];
|
||||
|
||||
Reference in New Issue
Block a user