react-native-js-profiler

1.2.2 • Public • Published

ReactNative JS Profiler

This projects tries to measure the performance impact on JS thread by different app modules. It attempts to do so by measuring execution time in of a given function and also measuring callbacks of asynchronous operations starting inside.

How it works:

See how-it-works.md

Usage:

import {
  attach,
  timeAndLog,
} from 'react-native-js-profiler';

attach();

timeAndLog(initModuleA, 'MyMessage', 'ModuleAContext', 'GeneralScope');

TODO

  • More generic API: don't depend on detox-instruments-react-native-utils

Package Sidebar

Install

npm i react-native-js-profiler

Weekly Downloads

4

Version

1.2.2

License

MIT

Unpacked Size

19.3 kB

Total Files

6

Last publish

Collaborators

  • andykog
  • yershalom
  • wix.mobile