AQTime + Delphi

 

一,Delphi项目设置For AQTime(Delphi 2007 for Win32 application for AQtime)                                                            

  1. Open your project in CodeGear Delphi 2007 for Win32.
  2. Select Project | Configuration Manager from the main menu. This will open the Build Configuration Manager dialog. Select the Debug configuration for your project:

                                                                  

                                
                                                                   

                                                                    

          

                                                                      

 

 

        

以下是AQTime设置:

 

一."Configure Current Profiler"    ---> "Alloction Profiler"

二. "Options" -----> "Searcher Directories..."--->"Get Defaults..." ----> "CodeGear Delphi 2007" 

     构选"Include Subdirectories"

三.运行程序

    "Result" -->"左边树节点"-->"Report" 此界面下显示,每个没个没有释放内存的代码,

     "Details",和没有释放内存相关的单元, 里面单元很多,只有一个单元是创建内存的地方,其它辅助.双击里面的条目可以定位到"Editor"界面,

     "Editor"查看"Details"中过来的代码.

 

Total Created 程序运行期间创建的内存总数目
Live Count 当前还有多少数目内存未释放
Live Size 当前还有多大内存未释放
Total Size 程序运行期间创建的内存总大小
原文地址:https://www.cnblogs.com/khzide/p/5012071.html