Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native profiling. Systrace not showing JS and Native Modules Thread

I have followed the guide for Profiling Android UI Performance

I run the following cmd: /usr/local/Cellar/android-sdk/24.4.1_1/platform-tools/systrace/systrace.py --time=10 -o trace.html shred gfx view -a com.navigation.

I am able to get a trace output. But the Js and Native Modules Threads are not available like described in the guide.

Here is an example of the generated trace. enter image description here

I have tried to run the trace both with dev=false as described in the guide and with dev=true as mentioned in this answer but non is working

I'm currently using version 0.28.0. I have not tried to use systrace before in the project, so don't know if it ever worked.

Any ideas why this is not shown is much appreciated.

like image 387
René Madsen Avatar asked Jul 07 '16 12:07

René Madsen


1 Answers

com.navigation app using Js and Native Modules?

If you are not using these modules in your app, it will not display in your systrace.

Please refer the following link how to add natvie module & js to app https://apimirror.com/react_native/native-modules-android

like image 198
Lava Sangeetham Avatar answered Oct 31 '22 11:10

Lava Sangeetham