FlexBuilder/MXMLC:分析构建过程?

发布于 2024-08-20 12:04:48 字数 95 浏览 6 评论 0原文

我注意到,最近 FlexBuilder 中的构建花费的时间比以前长得多(30 或 40 秒,而不是 3 或 4 秒)。分析这些构建以找出什么花费了这么多时间的最简单方法是什么?

I've noticed that, recently, builds in FlexBuilder have been taking much, much longer than they used to (30 or 40 seconds, as opposed to 3 or 4). What is the simplest way of profiling these builds to figure out what is taking so much time?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

旧人九事 2024-08-27 12:04:48

您尝试清理您的项目吗? ( 项目 --> Clean )

来自 Adob​​e Live Docs: 执行干净的构建

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.

Did you try cleaning your project? ( Project--> Clean )

From the 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.
幸福不弃 2024-08-27 12:04:48

我发现,当 Flex Builder 达到 Java 堆空间(例如 500M)时,构建速度会减慢,每当发生这种情况时,请尝试重新启动 Flex Builder。另外,通过转到“窗口”->“首选项”将堆监视器添加到状态栏,在过滤器中键入“堆空间”并选中“显示堆状态”框。

我还发现嵌入会大大减慢构建速度,在 html-template 文件夹中放置大量内容也是如此。我建议将所有嵌入移动到单独的模块,如所述这里

在构建过程中,html-template 文件夹中的所有内容都会被复制到 bin-debug,因此速度也会很慢。如何解决这个问题取决于您的项目,但从 html-template 中删除任何 .svn 或 .cvs 文件夹是一个开始。

I have found that when Flex Builder reaches a java heap space of, say 500M, the builds slows way down, try restarting Flex Builder whenever that happens. Also, add the heap monitor to the status bar by going to Window->Preferences, type "heap space" in the filter and check the box that says "Show heap status".

I've also found that embeds slows the builds down very much, so does having a lot of stuff in your html-template folder. I suggest moving all embeds to a separate module, like described here.

Evenrything in your html-template folder will get copied to bin-debug during build, so that will be slow too. How to solve this depends on your project, but removing any .svn or .cvs folders from html-template is a start.

望她远 2024-08-27 12:04:48

FlashBuilder只是一个eclipse,而eclipse是Java。您可以使用 JProfiler 分析 eclipse 本身。第一个问题就讲这么多。
为了追踪,实际上是什么让构建过程变得如此缓慢,而且分析可能不是您想要的。除了上面的内容之外,还有

-incremental=true

编译器参数。
确保您的“-Xms”条目等于“-Xmx”条目。

而且不仅仅是堆。您还可以明智地设置 -XX:PermSize= 和 -XXMaxPermSize= 参数。但这需要对 GC 过程有一定的了解,因为堆和永久空间之间的比率在这里至关重要。

如果您使用这些变量,请务必确保它们确实被使用。将它们放在某个地方(批处理文件,exlipse.ini)并使其产生任何效果非常容易。

FlashBuilder is just an eclipse and eclipse is Java. You can profile eclipse itself with JProfiler. so much for the first question.
To trakc down, waht actually makes the build process so slow is much harder and profiling may not be what you want. Additionally to the adives above, there is also the

-incremental=true

compiler argument.
Make sure your "-Xms" entry equals your "-Xmx" entry.

And there's more than heap. You can also set the -XX:PermSize= and -XXMaxPermSize= parameters wisely. But that would need some understanding of the GC process, as the ratio between heap and permspace is crucial here.

And if you play with these variables, always make sure they are actually used. It happens more than easy to put them somewhere (batch file, exlipse.ini) with them having any effect.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文