UnitySystracePlugin icon indicating copy to clipboard operation
UnitySystracePlugin copied to clipboard

Fail to work with android systrace

Open xiasun opened this issue 5 years ago • 7 comments

Hi all, I follow the instruction to use this plugin but it seems someting is missed:

  1. Copy the asset folder into my unity project.
  2. Attach the SystracePlugin.cs on one of my game object. (I add log in SystracePlugin.Start() and found it is called)
  3. 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!

xiasun avatar Mar 03 '20 02:03 xiasun

Hi! Which Unity version are you using? Is the package name correct in your command line?

Over17 avatar Mar 03 '20 07:03 Over17

Hi @Over17 , I am using 2018.4.16f1, yes the command line is correct, I can see my own trace added in native code.

xiasun avatar Mar 05 '20 12:03 xiasun

Can you see this line in logcat?

https://github.com/Over17/UnitySystracePlugin/blob/master/src/src/SystraceUnity.cpp#L118

Over17 avatar Mar 05 '20 13:03 Over17

Yes I can get this log. SystraceUnity: Enabling Unity systrace integration plugin

xiasun avatar Mar 06 '20 06:03 xiasun

Then everything should work. What is the device? Could you share your trace (maybe privately)?

Over17 avatar Mar 06 '20 08:03 Over17

Thanks, I will post a trace later.

xiasun avatar Mar 09 '20 09:03 xiasun

What was the solution to this?

gatlee21 avatar Feb 06 '23 14:02 gatlee21