我注意到,最近,在FlexBuilder中构建花费的时间比以前要长得多(30或40秒,而不是3或4秒)。分析这些构建的最简单方法是什么,以找出花费这么多时间的原因?
发布于 2010-02-09 09:04:12
你有没有试着清理你的项目?(项目-->清理)
来自Adobe Live Docs:Performing a clean build
After a project has been built, subsequent builds affect only the resources that have been added
or modified. To force the Flex Builder compiler to rebuild all resources in a project, you can
perform a clean build. You might perform a clean build if, for example, you want to eliminate all
potential sources of a problem you encountered when testing your application.
1. Select Project > Clean from the main menu.
2. Select the project (or projects) whose build files you want to discard and rebuild from scratch.
3. Click OK.发布于 2010-02-09 16:44:57
我发现,当Flex Builder达到一个java堆空间时,比如500M,构建速度就会变慢,每当发生这种情况时,请尝试重新启动Flex Builder。此外,通过转到Window->Preferences将堆监视器添加到状态栏,在筛选器中键入"heap space“,并选中显示"Show heap status”的复选框。
我还发现,嵌入会大大减慢构建速度,在html-template文件夹中放入大量内容也是如此。我建议将所有的嵌入移到一个单独的模块中,就像上面描述的here。
在构建过程中,html-template文件夹中的所有内容都会被复制到bin-debug中,所以速度也会很慢。如何解决这个问题取决于您的项目,但从html- .svn中删除任何.cvs或模板文件夹是一个开始。
发布于 2010-03-10 18:16:03
FlashBuilder只是一个eclipse,而eclipse是Java。您可以使用JProfiler分析eclipse本身。第一个问题到此为止。归根结底,实际上导致构建过程变得如此缓慢的原因要难得多,而且分析可能不是您想要的。除了上面的adives之外,还有
-incremental=true编译器参数。确保您的"-Xms“条目等于您的"-Xmx”条目。
而且还有更多的堆。您还可以明智地设置-XX:PermSize=和-XXMaxPermSize=参数。但这需要对GC过程有一定的了解,因为堆和permspace之间的比例在这里至关重要。
如果您使用这些变量,请始终确保实际使用它们。将它们放在某个地方(批处理文件、exlipse.ini)非常容易,而且它们会产生任何影响。
https://stackoverflow.com/questions/2223709
复制相似问题