To react. Systrace does not show JS and Native Modules Thread

I 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 can get trace output. But Js and Native Modules threads are not available, as described in the manual.

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

I tried to start tracing with dev = false, as described in the manual, and with dev = true, as indicated in this, but does not work

I am currently using version 0.28.0. I have not tried using systrace before in a project, so I donโ€™t know if it ever worked.

Any ideas why this is not shown are greatly appreciated.

+7
android profiling react-native systrace
source share
4 answers

Add dalvik --no-fix-threads to your command.

+2
source share

com.navigation application using Js and Native Modules?

If you do not use these modules in your application, it will not appear on your system.

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

+1
source share

Verify that the name of your package specified in the -a parameter is correct. I had a similar problem, and I found that I did not list the package name at all, which did not allow my trace to show any useful information.

0
source share

Have you tried using systrace from Device Monitor in Android Studio? There you have many tracking options:

enter image description here

To open trace in new versions of Chrome, you must include this script in trace.html:

 <script src="https://rawgit.com/MaxArt2501/object-observe/master/dist/object-observe.min.js"></script> 
-one
source share

All Articles