码迷,mamicode.com
首页 > 其他好文 > 详细

flash builder 4.6使用profile(概要分析)调试性能

时间:2015-02-10 11:10:31      阅读:267      评论:0      收藏:0      [点我收藏+]

标签:

最近用调试flex的性能,发现fb自带有性能调试工具profile,折腾好一段时间终于成功用上

 

环境:flash builder 4.6,myeclipse 10(fb装独立版,再以插件形式绑定到myeclipse),win8.1 64bit,ie 11,flash player 16

 

第一次profile,静止一段时间后弹出以下错误信息——unable to connect to the application to fetch profile data. please try profiling the application again

baidu之后发现如下文章,虽然没有解决我的问题,但还是学到不少profile的相关知识

http://flex.ui.blog.163.com/blog/static/51073536201022511237234/

http://bbs.9ria.com/thread-79273-1-1.html

http://hi.baidu.com/rendong/item/45ad19a928bdff716dd45506


 

1.代码的路径不能有中文

偶然在一个bbs上看到代码的路径不能有中文,于是我把代码的workspace移到纯英文目录,profile能启动了,不过没有打开正确的程序

这个应该是profile路径不对,于是各种路径都试了,最终找到正确的


 

2.profile configurstions访问路径设置

在flex主程序点右键菜单》profile as》profile configurstions

技术分享

技术分享

在URL or path to lanuch里输入profile时打开的路径,这里应该输入我们用浏览器访问的路径

PS:我的flex是嵌入在一个j2ee的web系统里,嵌在页面http://192.168.20.20:18016/frameset.jsp

PS2:我的情况里,因为swf必须有传入参数,在浏览器直接访问swf会报错,如果swf能单独访问的,应该用swf的访问路径也行

技术分享


 

这样设置完后,profile成功运行

 

flash builder 4.6使用profile(概要分析)调试性能

标签:

原文地址:http://www.cnblogs.com/cannel/p/4283192.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!