
CHAPTER 2: The ExtendScript Toolkit Inspecting object models 36
When execution halts (at termination, at a breakpoint, or due to a runtime error), the Toolkit displays this
information in the Document Window, line by line. The profiling data is color coded:
X Green indicates the lowest number of hits, or the fastest execution time.
X Orange or yellow indicates a trouble spot, such as a line that has been executed many times, or which
line took the most time to execute.
This example shows number-of-hits information:
This example displays timing information for the program, in microseconds. The timing might not be
accurate down to the microsecond; it depends on the resolution and accuracy of the hardware timers built
into your computer.
Inspecting object models
The ExtendScript Toolkit offers the ability to inspect the object model of any loaded dictionary, using the
Object Model Viewer that you invoke from the Help menu.
Show Hit Count When selected, display hit counts.
Show Timing When selected, display timing data.
Erase Profiler Data Clear all profiling data.
Save Data As Save profiling data as comma-separated values in a CSV file that can be loaded
into a spreadsheet program such as Excel.
Kommentare zu diesen Handbüchern