Closed
Description
I've tried using systrace like this:
C:\Python27\python.exe systrace.py --time=15 -o D:\tmp\traces\trace7.html sched gfx view -a com.insasd
but it doesn't show anything for mqt_js thread, apart that it is busy. I wasn't able to see detailed JS calls as shown on the docs. Debug mode is enabled.
Also, I've tried adding
import {View, StyleSheet, BackAndroid, StatusBar, ActivityIndicator, Systrace} from "react-native";
Systrace.setEnabled(true);
but it throws exception:
E/ReactNativeJS(30175): undefined is not a function (evaluating 'global.nativeTraceEndSection(TRACE_TAG_REACT_APPS)')
I/ReactNativeJS(30175): 'Failed to print error: ', 'undefined is not a function (evaluating \'global.nativeTraceBeginSection(TRACE_TAG_REACT_APPS,profileName,args)\')'
E/ReactNativeJNI(30175): Got JS Exception: TypeError: undefined is not a function (evaluating 'global.nativeTraceEndSection(TRACE_TAG_REACT_APPS)') (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:18511)
E/ReactNativeJNI(30175): Got JS Stack: endEvent@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:18511:29
E/ReactNativeJNI(30175): loadModuleImplementation@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:135:18
E/ReactNativeJNI(30175): guardedLoadModule@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:70:32
E/ReactNativeJNI(30175): _require@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:54:18
E/ReactNativeJNI(30175): http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:1490:21
E/ReactNativeJNI(30175): loadModuleImplementation@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:127:8
E/ReactNativeJNI(30175): guardedLoadModule@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:63:37
E/ReactNativeJNI(30175): _require@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:54:18
E/ReactNativeJNI(30175): global code@http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:12
E/unknown:React(30175): Exception in native call from JS
E/unknown:React(30175): com.facebook.react.devsupport.DebugServerException: TypeError: undefined is not a function (evaluating 'global.nativeTraceEndSection(TRACE_TAG_REACT_APPS)') (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:18511)
I am using WIndows 10 with Android