Closed
Description
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