Renesas M16C/64 Network Card User Manual


 
R0E530640MCU00 User’s Manual 5. Debugging Functions
REJ10J1733-0100 Rev.1.00 Apr. 01, 2008
Page 145 of 229
Table 5.25 Measurement condition modes (Continued)
[Interrupt-disabled range between two events]
Figure 5.70 Interrupt-disabled range between two events
Measurement is taken of an interrupt disabled section from when a start
event occurs to when an end event occurs.
Specifically, measurement is taken of an interrupt disabled time and an
interrupt disabled count within the range set by a start event and an end
event. The measurement of time starts at the same time an interrupt is
disabled and is aborted at the same time the interrupt is reenabled. The count
is incremented by one each time an interrupt is disabled.
Start event: One or multiple events can be set.
End event: One or multiple events can be set.
[CAUTION]
To measure an execution time of a function (maximum, minimum or average execution time of a function), use Between two
events.
Set a fetch to the beginning address of the function as a start event and a fetch to the exit of the function (where return
statement is written) as an end event. If there are more than one exit, set fetch conditions as an end event for each exit.
(2) Selecting the unit of measurement
This setting is applied in common to all of 8 sections. The unit of measurement can be selected from the following options:
10 ns, 20 ns (initial value), 40 ns, 80 ns, 160 ns, 1.6 µs
The maximum measurement time varies with the unit of measurement you set.
5.10.4 Starting Performance Measurement
When the user program is run, performance measurement is automatically started according to the performance measurement
conditions set.
When the user program is halted, the measurement result is displayed in the Performance Analysis window.
When the user program is rerun without changing measurement conditions after being halted, the measured time in this
instance is added to the previously measured value.
To perform a measurement over again, clear the measurement result before running the program.