无法查看由Android SDK中的Systrace工具生成的HTML跟踪报告 [英] Unable to view HTML trace report generated by Systrace tool in Android SDK

查看:484
本文介绍了无法查看由Android SDK中的Systrace工具生成的HTML跟踪报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Android SDK中的 Systrace 工具生成跟踪报告,但是无法在浏览器中查看该报告.它为空白,不包含任何信息.我在一些论坛上读到需要在Chrome浏览器中打开报告,我也使用Chrome打开了报告,但报告为空白.

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.

我已经从开发人员选项中启用了USB调试,并且设备正在运行Android 4.2,并且我正在使用Android SDK中的 DDMS 工具生成跟踪.

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

推荐答案

首先,如果有人在OS X或Windows上使用Chrome v50.0 +,请尝试一下.

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

  1. 打开chrome浏览器,然后转到"chrome://tracing"

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

在跟踪页面中,单击加载",然后选择systrace生成的html文件.

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

第二,我认为这是Google确认的错误.

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

这似乎是因为现代版本的Chrome已弃用Object.observe函数[1] [2].

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

有关更多信息,请参见 https://code.google.com/p/android/issues/detail?id = 57135

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

这篇关于无法查看由Android SDK中的Systrace工具生成的HTML跟踪报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆