任何方式来分析在Flex中构建的SWF的大小? [英] Any way to analyze the size of a SWF built in Flex?
问题描述
我知道-link-report选项,但它只给出了外部链接库类的大小。我非常有兴趣看到我的应用程序中所有类和资源的大小的报告,如果我也可以查看它们的依赖关系,这将是一个巨大的好处。不知道如何编译代码我不确定这是否是可能的,但它似乎应该,因为编译器可以给我从其他库链接的个别类的大小。
我做了一些搜索,但找不到有用的东西。一切都指向模块化和外部链接库的优化技术,我理解并将实现,但我真的很喜欢一些更详细的报告,我编译的应用程序看起来像。
<要清楚的是,对于如何缩小文件大小的提示,我并不是真的有兴趣,只是一个关于什么是使用什么和哪些类引用什么的报告。
<任何人有任何想法?
更正 - 链接报告显示所有类。我在Flex Builder中的特定项目有几个CSS文件设置为编译到SWF。我的主要应用程序的链接报告被这些CSS编译覆盖!
报告实际上包含所有编译的类,而不仅仅是外部库中的(至少在Flex 4 SDK中)。有一个xsl可用,将生成链接报告的HTML文件,所以它是更容易阅读。
检查这个职位: http://blog.iconara.net/2007/02/25/visualizing-mxmlcs-link-报告/
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.
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.
Anybody have any ideas?
CORRECTION - The link report does show all classes. My particular project in Flex Builder had several CSS files set to compile to swfs. My link report for the main app was being overwritten by these css compiles!
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.
Check this post: http://blog.iconara.net/2007/02/25/visualizing-mxmlcs-link-report/
这篇关于任何方式来分析在Flex中构建的SWF的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!