有什么方法可以分析 Flex 中内置的 SWF 的大小? [英] Any way to analyze the size of a SWF built in Flex?

查看:21
本文介绍了有什么方法可以分析 Flex 中内置的 SWF 的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Flex 应用程序,看起来比它应该的要大.其中有很多代码,但资产并不多,而且看起来很大,但我不知道如何确定空间的去向.

I have a Flex application that seems larger than it should be. There is a lot of code in it, but not a lot of assets and it just seems large, but I'm not sure how to go about figuring out where the space is going.

我知道 –link-report 选项,但它只提供外部链接库类的大小.我对查看我的应用程序中所有类和资源大小的报告非常感兴趣,如果我还可以查看它们的依赖关系,那将是一个巨大的好处.不知道代码是如何编译的,我不确定这是否可行,但似乎应该这样做,因为编译器可以为我提供从其他库链接的各个类的大小.

I know about the –link-report option, but it only gives the sizes of externally linked library classes. I'm very interested in seeing a report of the sizes of all the classes and resources in my application and it would be a huge bonus if I could also view their dependencies. Not knowing how the code is compiled I'm not sure if this is even possible, but it seems like it should since the compiler can give me the sizes of individual classes linked from other libraries.

我进行了一些搜索,但找不到任何有用的信息.一切都指向模块化和外部链接库的优化技术,我理解并将实施这些技术,但我真的很喜欢关于我编译的应用程序是什么样子的更详细的报告.

I did some searching around, but couldn't find anything helpful. Everything points to the optimization techniques of modularizing and externally linking libraries, which I understand and will implement, but I would really love some more detailed reports of what my compiled application looks like.

需要明确的是,我对有关如何减小文件大小的技巧并不真正感兴趣,只是一份关于用途以及哪些类正在引用什么的报告.

To be clear, I'm not really interested in tips on how to reduce the file size, just a report on what is used for and which classes are referencing what.

有人有什么想法吗?

更正 - 链接报告确实显示了所有类.我在 Flex Builder 中的特定项目有几个 CSS 文件设置为编译为 swfs.我的主应用链接报告被这些 css 编译覆盖了!

推荐答案

链接报告实际上包含所有已编译的类,而不仅仅是外部库中的类(至少对于 Flex 4 SDK).有一个 xsl 可用,可以生成链接报告的 html 文件,以便于阅读.

The link report actually contains all compiled classes and not just the ones in external libraries (at least with the Flex 4 SDK). There is an xsl available that will generate an html file of the link report so it is easier to read.

查看此帖子:http://blog.iconara.net/2007/02/25/visualizing-mxmlcs-link-report/

这篇关于有什么方法可以分析 Flex 中内置的 SWF 的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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