Over17 / UnitySystracePlugin

Unity Systrace Plugin for Android
Apache License 2.0
70 stars 11 forks source link

Fail to work with android systrace #3

Open xiasun opened 4 years ago

xiasun commented 4 years ago

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!

Over17 commented 4 years ago

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

xiasun commented 4 years ago

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

Over17 commented 4 years ago

Can you see this line in logcat?

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

xiasun commented 4 years ago

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

Over17 commented 4 years ago

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

xiasun commented 4 years ago

Thanks, I will post a trace later.

gatlee21 commented 1 year ago

What was the solution to this?