Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to view HTML trace report generated by Systrace tool in Android SDK

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

like image 535
Zohaib Hassan Avatar asked May 20 '13 06:05

Zohaib Hassan


People also ask

What is Android system tracing?

Devices running Android 9 (API level 28) or higher include a system-level app called System Tracing. This app is similar to the systrace command-line utility, but the app allows you to record traces directly from a test device itself, without needing to plug in the device and connect to it over ADB.


2 Answers

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

like image 69
Zhipeng.C Avatar answered Oct 03 '22 04:10

Zhipeng.C


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

like image 37
Daber Avatar answered Oct 03 '22 04:10

Daber