Skip to content

react-addons-perf doesn't measure anything #12163

Closed
hixio-mh/react-native
#20
@1st8

Description

@1st8

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions