Fail to work with android systrace
Hi all, I follow the instruction to use this plugin but it seems someting is missed:
- Copy the asset folder into my unity project.
- Attach the SystracePlugin.cs on one of my game object. (I add log in SystracePlugin.Start() and found it is called)
- Use android systrace as normal to get trace. e.g.
python systrace.py --time=10 --app=com.google.ar.core.examples.unity.helloar -o mgdhls4.html gfx input view wm am sm hal app sched irq freq sync
But there's nothing special shown on the my trace, it is exactly the same as the trace before using this plugin. Is there anything I missed?
Many thanks!
Hi! Which Unity version are you using? Is the package name correct in your command line?
Hi @Over17 , I am using 2018.4.16f1, yes the command line is correct, I can see my own trace added in native code.
Can you see this line in logcat?
https://github.com/Over17/UnitySystracePlugin/blob/master/src/src/SystraceUnity.cpp#L118
Yes I can get this log.
SystraceUnity: Enabling Unity systrace integration plugin
Then everything should work. What is the device? Could you share your trace (maybe privately)?
Thanks, I will post a trace later.
What was the solution to this?