Skip to content

Instantly share code, notes, and snippets.

@FreddyPoly
Last active August 9, 2017 08:35
Show Gist options
  • Save FreddyPoly/c3d8d8e351b16533bae501a33bc4e956 to your computer and use it in GitHub Desktop.
Save FreddyPoly/c3d8d8e351b16533bae501a33bc4e956 to your computer and use it in GitHub Desktop.
[REACT NATIVE] Mesure de performances
import PerfMonitor from 'react-native/Libraries/Performance/RCTRenderingPerf';
componentDidMount() {
PerfMonitor.toggle();
setTimeout(() => {
PerfMonitor.start();
setTimeout(() => {
PerfMonitor.stop();
}, 25000);
}, 5000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment