Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systrace doesn't produce detailed JS Thread calls info #9349

Closed
tadas-subonis opened this issue Aug 11, 2016 · 5 comments
Closed

Systrace doesn't produce detailed JS Thread calls info #9349

tadas-subonis opened this issue Aug 11, 2016 · 5 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@tadas-subonis
Copy link

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

@charpeni
Copy link
Contributor

@facebook-github-bot label Icebox

@charpeni
Copy link
Contributor

Hi there! This issue is being closed because it has been inactive for a while.

But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/systrace-doesnt-produce-detailed-js-thread-calls-info

ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.

Also, if this issue is a bug, please consider sending a PR with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

@charpeni
Copy link
Contributor

@facebook-github-bot close

@facebook-github-bot facebook-github-bot added Icebox Ran Commands One of our bots successfully processed a command. labels Nov 14, 2016
@facebook-github-bot
Copy link
Contributor

@charpeni tells me to close this issue. If you think it should still be opened let us know why.

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Nov 14, 2016
@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants
@tadas-subonis @facebook-github-bot @charpeni @react-native-bot and others