2.4.7
Measuring the Program Execution Time
This section explains the function to measure the program execution time.
■ Measured Items
The emulator debugger (MB2100-01) can measure the following two items for the user program execution
time.
• Time measurement
Measures the time from start of program execution to end.
For details, refer to "2.4.7.1 Measuring the Program Execution Cycle Count".
• Performance measurement
Measures the time between 2 events where the program execution passes.
For details, refer to "2.4.7.2
Measurement]".
■ Measurement unit
The following two measurement units are available for both execution time measurement and performance
measurement.
Execution cycle measurement : Measures by the number of execution cycles.
Real-time measurement :
Measurement unit can be set as follows.
• Dialog
- Measurement Unit Dialog
For details, refer to "4.4.14.2 Performance (Emulator Debugger [MB2100-01])" or "4.6.8.1
Measurement Unit for Execution Time Measurement" of "SOFTUNE Workbench Operation Manual".
• Command
- SET TIMERSCALE
For details, refer to "1.64 SET TIMERSCALE" of "SOFTUNE Workbench Command Reference
Manual".
Note:
Measurement unit setting is common to both time measurement and performance measurement.
Measuring Event-to-Event Execution Cycle Count [Performance
Also, the number of measured execution cycles can be
converted into real time.
This is different from an actual measurement, however, it is
an indication of real-time when real-time can not be
measured.
Measures in real-time.
This is available only for certain products.
CHAPTER2 Dependence Functions
183