Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute 'measure' on 'WorkerPerformance': The mark '757::componentWillMount' does not exist #11410

Closed
jeremyong opened this issue Dec 12, 2016 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@jeremyong
Copy link

Description

I am trying to use the ReactPerf tool in order to analyze DOM rendering performance and running to the following exception:

Failed to execute 'measure' on 'WorkerPerformance': The mark '757::componentWillMount' does not exist

The number 757 is variable.

Reproduction

Simply import the perf addon as in import Perf from 'react-native/Libraries/Renderer/src/renderers/shared/ReactPerf'; and then run Perf.start().

Solution

Ideally, Perf.start(), Perf.stop(), etc would work as advertised. It's very difficult to investigate rendering issues without it for more complex scenes.

Additional Information

  • React Native version: 0.39.1
  • Platform: Both
  • Operating System: MacOS
@ptomasroos
Copy link
Contributor

Same on RN 0.38.0

@ptomasroos
Copy link
Contributor

If you do something like this. It will work.

  componentDidMount() {
    setTimeout(() => {
      Perf.start();
      setTimeout(() => {
        Perf.stop();
        const measurements = Perf.getLastMeasurements();
        Perf.printWasted(measurements);
      }, 30000);
    }, 5000);
  }

Or just call
Perf.start() outside the class.

@hramos
Copy link
Contributor

hramos commented May 25, 2017

Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why.

@hramos hramos closed this as completed May 25, 2017
@hramos hramos added the Icebox label May 26, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Jul 19, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants