Unable to view HTML trace report generated by Syst

2019-02-05 14:12发布

I am trying to generate trace reports with Systrace tool in the Android SDK, but I cant view the report in the browser. It is blank and does not contain any information. I read in some forums that I need to open the report in Chrome browser, I opened it with Chrome as well but the report is blank.

I have enabled USB Debugging from the Developer Options and device is running Android 4.2 and I am using DDMS tool from the Android SDK to generate the traces.

http://developer.android.com/tools/help/systrace.html

12条回答
叼着烟拽天下
2楼-- · 2019-02-05 14:45

On Windows , I just can see the result by doing this:

  1. get the trace.html
  2. open trace.html with chrome browser and open the chrome's developer tools then i find out there is 3 error in trace.html showing like this
  3. go to the error line ,then comment the error function like this
  4. save the modified html then refresh chrome , you can see the trace result

This is just not the best solution, but any way we can see the result.

查看更多
该账号已被封号
3楼-- · 2019-02-05 14:46

I've done following:

cd $ANDROID_HOME/platform-tools

git clone https://android.googlesource.com/platform/external/chromium-trace/

mv systrace old-systrace

ln -s chromium-trace/catapult/systrace/systrace/ systrace

that fixed my systrace issue

systrace report work in latest chrome at least

查看更多
虎瘦雄心在
4楼-- · 2019-02-05 14:47

I was having the same issue when capturing through eclipse on Ubuntu 12.04.

Worked around it by running the tool directly from the systrace folder (sdk/tools/systrace/)

./systrace.py -t 5 -o trace.html
查看更多
We Are One
5楼-- · 2019-02-05 14:49

Firstly, if anyone is using Chrome v50.0+ on OS X or Windows, just try this please.

  1. open chrome browser and go to "chrome://tracing"

  2. in the tracing page, click load and select the systrace generated html file.

Secondly, I think it's a bug which is confirmed by Google.

It looks like this is because modern versions of Chrome have deprecated the Object.observe function[1][2].

For more information, please see this, https://code.google.com/p/android/issues/detail?id=57135

查看更多
ら.Afraid
6楼-- · 2019-02-05 14:52

For me, it didn't work on Firefox v34 but worked in Chrome v37 and I am on Ubuntu 12.04.

查看更多
ら.Afraid
7楼-- · 2019-02-05 14:53

I also have this problem running chrome on linux.

It seems they have bug in the implementation of javascript drawing the results.

Check JavaScript console. Mine says.

Uncaught TypeError: undefined is not a function

查看更多
登录 后发表回答