Track the performance impact for a given function incluing various async callbacks and RN callbacks.
import {
attach,
timeAndLog,
} from 'react-native-js-profiler';
attach();
timeAndLog(initModuleA, 'MyMessage', 'ModuleAContext', 'GeneralScope');
- More generic API: don't depend on detox-instruments-react-native-utils