-
Notifications
You must be signed in to change notification settings - Fork 25k
Description
Description
When using react-addons-perf, the result of Perf.getLastMeasurements() always returns an empty array, although there were updates happening between the calls to Perf.start() and Perf.stop().
Reproduction
Create a fresh react-native project and apply the following changes: 1st8/PerfNative2@9916526
Now open the app and start debugging in chrome. In the console, select the "debuggerWorker.js" environment to get access to the global Perf object.
Then run Perf.start(), click the plus-button a few times and finalize with running Perf.stop().
The following call to Perf.getLastMeasurements() is expected to return measurements of your actions, but returns none.
I did a similar test with a fresh create-react-app project and got the expected result.
Solution
Sadly no idea...
Additional Information
- React Native version: 0.40.0
- Platform: both
- Operating System: MacOS