Download ProDelphi User Guide

Transcript
Contents of this description
A. Profiling ............................................................................................................................................ 4
A.1. Introduction.................................................................................................................................... 4
A.2. Basic profiling ................................................................................................................................ 4
A.2.1. Files created by ProDelphi or the measured program................................................................ 6
A.2.2. Checking the results with the Built-in Viewer.............................................................................. 7
A.2.3. Emulation of a faster or slower PC........................................................................................... 11
A.2.4. Using the caller / called graph (call graph) ............................................................................... 13
A.3. Getting exact results.................................................................................................................... 14
A.3.1. Common causes of disturbing influences outside of your program.......................................... 14
A.3.2. Common causes of disturbing influences inside your program ................................................ 14
A.3.3. Common cause of disturbing influence is the PC's processor cache....................................... 14
A.3.4. Measuring on mobile computers .............................................................................................. 14
A.3.5. Summary .................................................................................................................................. 14
A.4. Interactive optimization................................................................................................................ 15
A.4.1. The history function .................................................................................................................. 15
A.4.2. Practical use of the history function.......................................................................................... 15
A.5. Measuring parts of the program .................................................................................................. 16
A.5.1. Exclusion of parts of the program............................................................................................. 16
A.5.2. Dynamic activation of measurement ........................................................................................ 17
A.5.3. Finding points for dynamic activation ....................................................................................... 17
A.5.4. Measuring specified parts of methods...................................................................................... 17
A.6. Programming API ........................................................................................................................ 20
A.6.1. Measuring defined program actions through Activation and Deactivation................................ 20
A.6.2. Preventing to measure idle times ............................................................................................. 21
A.6.3. Programmed storing of measurement results .......................................................................... 22
A.7. Options for profiling ..................................................................................................................... 22
A.7.1. Code instrumenting options:..................................................................................................... 22
A.7.2. Runtime measurement options ................................................................................................ 24
A.7.3. Measurement activation options............................................................................................... 25
A.7.4. General options ........................................................................................................................ 25
A.8. Online operation window ............................................................................................................. 26
A.9. Dynamic Link Librarys (DLL's) and packages ............................................................................. 27
A.9.1. DLL’s ........................................................................................................................................ 27
A.9.2. Packages.................................................................................................................................. 28
A.9.2.1. Delphi 2005 and above ......................................................................................................... 28
A.9.2.2. Delphi 5 - 7 ............................................................................................................................ 28
A.9.2.3. Delphi - all versions ............................................................................................................... 28
A.10. Treatment of special Windows- and Delphi-API-functions ........................................................ 29