question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-addons-perf

See original GitHub issue

React : 15.1.0 react-native : 0.29.0 react-addons-perf : 15.1.0

Is react-addons-perf supported in react-native? I am trying to find where in my JS we have a very expensive task, and cannot get react-addons-perf to print anything to the console.

Furthermore, how would one use either react-addons-perf or the built in perf monitor ui while not in dev mode? Should these tools be trusted in dev mode?

Thank you!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
24arkcommented, Feb 4, 2017

You can use RCTRenderingPerf.js instead of react-addons-perf.

import PrefMonitor from 'react-native/Libraries/Performance/RCTRenderingPerf';

componentDidMount() {

  PrefMonitor.toggle();
  PrefMonitor.start();
  setTimeout(() => {
      PrefMonitor.stop();
  },5000);

}

7reactions
iksnaecommented, Jan 26, 2017

Where’s the answer? I see @DanielMSchmidt sent the @facebook-github-bot to suggest the question be asked on Stack Overflow, but that’s it. I would like to leverage react-addons-perf but having no luck enabling in a React Native project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-addons-perf - npm
This package provides the React Perf add-on. ... Start using react-addons-perf in your project by running `npm i react-addons-perf`.
Read more >
Performance Tools - React
In addition to giving you an overview of your app's overall performance, Perf is a profiling tool that tells you exactly where you...
Read more >
Using React's Perf with react-addons-perf | by Daniel Park
Benchmark your React component or see performance problems in your React apps by using react-addons-perf. Setup. In your console, run
Read more >
react-addons-perf | Yarn - Package Manager
react -addons-perf · Provide a component stack as a second argument to onRecoverableError . · Pass information about server errors to the client....
Read more >
Top 5 react-addons-perf Code Examples - Snyk
To help you get started, we've selected a few react-addons-perf examples, based on popular ways it is used in public projects.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found