Expose Systrace from the 'react-native' package

Summary:
This allows React Native apps to instrument their own code via Systrace.measureMethod() and the like.

**Test Plan:** Used require('react-native').Systrace in my own app successfully to instrument my own code.
Closes https://github.com/facebook/react-native/pull/7734

Differential Revision: D3346222

Pulled By: javache

fbshipit-source-id: 08ffc781a1187db89c6e9a0714d644dbc485724c
This commit is contained in:
Philipp von Weitershausen 2016-05-25 05:21:36 -07:00 committed by Facebook Github Bot 8
parent b71db11554
commit 1e4d9d4897
2 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,7 @@ const ReactNative = {
get Settings() { return require('Settings'); },
get StatusBarIOS() { return require('StatusBarIOS'); },
get StyleSheet() { return require('StyleSheet'); },
get Systrace() { return require('Systrace'); },
get TimePickerAndroid() { return require('TimePickerAndroid'); },
get UIManager() { return require('UIManager'); },
get Vibration() { return require('Vibration'); },

View File

@ -98,6 +98,7 @@ var ReactNative = Object.assign(Object.create(require('ReactNative')), {
Settings: require('Settings'),
StatusBarIOS: require('StatusBarIOS'),
StyleSheet: require('StyleSheet'),
Systrace: require('Systrace'),
TimePickerAndroid: require('TimePickerAndroid'),
UIManager: require('UIManager'),
Vibration: require('Vibration'),