-
Couldn't load subscription status.
- Fork 9
Open
Description
I have created some components in the react native sample app. But I am not being able to find them in profiler.
reproducer -> https://github.com/demon-sword/sampleAppProfiling
This is the App component
startProfiling()
function App(): React.JSX.Element {
const isDarkMode = useColorScheme() === 'dark';
const backgroundStyle = {
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
};
return (
<SafeAreaView style={backgroundStyle}>
<Component1 />
<Button title={'StopProfiling'} onPress={() => {
stopProfiling(true)
}}/>
</SafeAreaView>
);
}
This is the profile that is generated by the produced by the package
sampling-profiler-trace-1.cpuprofile.txt
As you can see in the image that there is only App component is available in the trace. Nothing About Component1 in the trace and there are some empty blocks in the trace as well.
The things I have tried -:
- Class components
- Functional Components
- Exporting components by default
- Adding displayNames to components
- Tried with Arrow function components as well
Can you please help
Metadata
Metadata
Assignees
Labels
No labels