FlexBuilder/MXMLC: Profiling the build process?

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?

-------------Problems Reply------------

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.

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.

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


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.

Category:flex Views:0 Time:2010-02-08

Related post

  • Way to profile the build process? 2010-09-09

    My C# Solution is taking longer to compile that I would like. Is there a way to profile the build process to see what is taking so long? --------------Solutions------------- There's already a profiler built into MSBuild. Tools + Options, Projects and

  • Is there such thing like profiler of building processes? 2011-06-06

    I want to narrow down places where can be bottlenecks? Building of my project can take even half an hour. I know many tricks and things which in theory can be guilty, however profiler will be complete solution for all my question. I am asking about p

  • Integrating Automated Web Testing Into Build Process 2009-08-06

    I'm looking for suggestions to improve the process of automating functional testing of a website. Here's what I've tried in the past. I used to have a test project using WATIN. You effectively write what look like "unit tests" and use WATIN to automa

  • Build Process failed with maven package 2010-05-13

    I am working on a maven project to build a simple utility api. The same source code when build on my office win XP machine, was successful. Now i am at home and working with same source code on CentOS machine. Here the build process failed strangely.

  • Slow shrinksafe operation during dojo build process 2011-08-25

    I use dojo build process on my application during build stage. But it is very slow, takes several minutes to optimize one big .js file. I am calling it within ant build script and groovy antBuilder. Here is the call: ant.java(classname:"org.mozilla.j

  • Using TFS Build Extensions 2010 Azure in TFS Build Process Templates 2012-03-21

    I'm attempting to use the community TFS Build Extensions Azure activities to deploy to Azure as part of a TFS Build. I've added activities from TfsBuildExtensions.Activities.dll and TfsBuildExtensions.Activities.Azure.dll and I'm able to any activity

  • How can I create virtual machines as part of a build process using MSBuild and MS Virtual Server and/or Hyper-V Server Virtualization? 2008-08-14

    What I would like to do is create a clean virtual machine image as the output of a build of an application. So a new virtual machine would be created (from a template is fine, with the OS installed, and some base software installed) --- a new web sit

  • What types of testing do you include in your build process? 2008-08-29

    I use TFS 2008. We run unit tests as part of our continuous integration build and integration tests nightly. What other types of testing do you automate and include in your build process? what technologies do you use to do so? I'm thinking about smok

  • Best way to incorporate spell checkers with a build process 2008-09-03

    I try to externalize all strings (and other constants) used in any application I write, for many reasons that are probably second-nature to most stack-overflowers, but one thing I would like to have is the ability to automate spell checking of any us

  • What is a good CI build-process 2008-09-19

    What constitutes a good CI build-process? We use CI, but is deployment to production even a realistic CI goal when you have dependencies on several services that should be deployed too and other apps may depend on these too. Is a good good CI build p

  • Automatic BizTalk Versioning in My Build Process 2008-11-06

    In all of my other .net apps my build process (a mixture of nant and custom tasks) automatically updates the [AssemblyVersionAttribute] AssemblyInfo.cs with the current build number before the call to msbuild, stamping in the build number in the vers

  • ANT & MSBUILD - build process won't fail if errors 2009-01-23

    When running msbuild.exe with ANT's exec task, errors in the .net code do not result in the build process failing. Why would this be? --------------Solutions------------- I use Nant to run some MSBuild tasks. Every time I use the failonbuild attribut

  • Making build process independent of GAC 2009-02-05

    How can we make our build process (Dev Studio 2005) for a .NET project completely independent of what is installed on the GAC on the particular machine that it is running on. Here's the problem we're trying to solve: Depending on what assemblies happ

  • What do you use for a complex build process? 2009-02-06

    I am trying to revamp our build process, which is currently a gigantic Ant build.xml that calls into other ant build files and executes several Java classes to perform more complex logic that would be impossible/scary to attemp in Ant. Background: ex

  • iPhone: auto zip the executable in the build process 2009-02-28

    I would like to add a script that zips the executable after my iphone app is done building. I've tried doing this by adding a Post Build script to the target. However, in the build process, the code-signing procedure occurs after the build scripts ar

  • Java Build Process / YUI Compressor Issues 2009-06-08

    I am very new to Java programming so please bare with me. I am building a build process for our web development team. All it needs to do is read a global.css file, find all the stylesheets that are used for the project, concat them into one large fil

  • Subversion and CI build processes 2009-06-16

    Here at work we are using Subversion and CruiseControl.NET and as our source control and CI tools. Our Subversion structure is setup like the following: Project Branch Tag Trunk At present our process for creating builds is to

  • Visual Studio 2008 Professional Build Process 2009-06-27

    I would like to accomplish two things during my build process: Run unit tests - I have a Test Project with my unit tests. I would like to run all of these tests on build and receive a notification if the build fails validation. Merge web.config files

  • combining multiple .js files into one in a build process 2009-06-27

    Any tips on combining multiple .js files into 1 (for a build process). Will yuicompressor do this? --------------Solutions------------- YUI Compressor can do this very easily, just send in the file names into YUI as arguments and it will output them

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.142 (s). 11 q(s)