title: Profiler and Memory Analysis Tools for Delphi
body: <p>I recently upgraded from Delphi 4 to Delphi 2009. With Delphi 4 I had been using <a href="http://web.archive.org/web/20001205122400/http&#58;//www.eccentrica.org/gabr/gpprofile/gpprofile.htm" rel="noreferrer">GpProfile by Primoz Gabrijelcic</a> as a profiler and <a href="http://web.archive.org/web/20031204135824/http&#58;//www.turbopower.com/products/sleuth/" rel="noreferrer">Memory Sleuth by Turbo Power</a> for memory analysis and leak debugging. Both worked well for me. But I now need new tools that will work with Delphi 2009. </p>
  
  <p>The leader in Profiling/Analysis tools for Delphi by a wide margin is obviously <a href="http://www.automatedqa.com/products/aqtime/index.asp" rel="noreferrer">AQTime by AutomatedQA</a>. They recently even gobbled up <a href="http://www.scip.be/index.php?Page=ArticlesDelphi07&amp;Lang=EN" rel="noreferrer">Memproof by Atanas Soyanov</a>, which I understood was an excellent and free memory analysis tool, and incorporated its functionality into AQTime. But AQTime is very expensive for an individual programmer. It actually costs more than the upgrade to Delphi 2009 cost!</p>
  
  <p>So my question is: Are there other less expensive options to do profiling and memory analysis in current versions of Delphi that you are happy with and recommend, or should I bite the bullet and pay the big bucks for AQTime?</p>
  
  <hr>
  
  <p>Addenum: It seems the early answerers are indicating that the FastMM manager already included in Delphi is very good for finding memory leaks.</p>
  
  <p>So then, are there any good alternatives for source code profiling?  </p>
  
  <p>One I'm curious about is <a href="http://www.prodelphi.de/indexpd.htm" rel="noreferrer">ProDelphi by Michael Adolph</a> which is less than one sixth the cost of AQTime. Do you use it? Is AQTime worth paying six times as much?</p>
  
  <hr>
  
  <p>Addenum 2: I downloaded trial versions of both AQTime and ProDelphi.</p>
  
  <p>AQTime was a bit overwhelming and a little confusing at first. It took a few hours to find some of the tricks needed to hook it up. </p>
  
  <p>ProDelphi was very much like the GpProfile that I was used to. But its windows are cluttered and confusing and it's not quite as nice as GpProfile.</p>
  
  <p>To me the big differences seem to be:</p>
  
  <ol>
  <li><p>ProDelphi changes your code. AQTime does not. Changing code may corrupt your data if something goes wrong, but my experience with GpProfile was that it never happened to me. Plus one for AQTime.</p></li>
  <li><p>ProDelphi requires you turn optimization off. But what you want to profile is your program with optimization on, the way it will be run. Plus one for AQTime.</p></li>
  <li><p>ProDelphi only can profile down to the function or procedure. AQTime can go down to individual lines. Plus 2 for AQTime.</p></li>
  <li><p>ProDelphi has a free version that will profile 20 routines, and its pro version costs less than $100 USD. AQTime is $600 USD.  Plus 4 for ProDelphi.</p></li>
  </ol>
  
  <p>The score is now 4-4. What do you think?</p>
  
  <hr>
  
  <p>Addenum 3: Primoz Gabrijelcic is planning to get GpProfile working again. See his comments on some of the responses below. He on StackOverflow as <a href="https://stackoverflow.com/users/4997/gabr">Gabr</a>.</p>
  
  <hr>
  
  <p>Addenum 4: It seems like there may be a profiler solution after all. See <a href="https://stackoverflow.com/questions/291631/profiler-and-memory-analysis-tools-for-delphi/672554#672554">Andre's open source asmprofiler, described below</a>.</p>