| |||
| Home > Examining the Target Execution Environment > Viewing statistics for RVISS targets > Example of how to accumulate RVISS statistics | |||
For example, you might want to view the counts from the point at which a breakpoint is hit. To do this, you might set a breakpoint that is activated after 10 passes, then create a reference point to show the counts from this point onwards. The following example uses the dhrystone image:
Connect to an RVISS
target on the RealView Instruction Set Simulator Debug
Interface.
Load the example dhrystone image ...\Debug\dhrystone.axf.
Enter the following command to set a breakpoint:
BREAKINSTRUCTION,passcount:10 \DHRY_1\#149:1
Start execution.
Enter 1000 when prompted for the number of runs.
When the breakpoint is activated, create your reference
point (iter:10):
STATS,setref iter:10
View the current values:
> STATS
Ref_Point Instructions Core_Cycles _S_Cycles _N_Cycles _A_Cycles C_Cycles Total
Ref_Cur 00007cb1 0000c703 0000e4b6 00000000 00031279 00000000 0003f72f
iter:10 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Restart execution.
View the current values:
> STATS
Ref_Point Instructions Core_Cycles _S_Cycles _N_Cycles _A_Cycles C_Cycles Total
Ref_Cur 00007e97 0000ca13 0000e800 00000000 00031e87 00000000 00040687
iter:10 000001e6 00000310 0000034a 00000000 00000c0e 00000000 00000f58
You can create additional reference points as required.
the following in the RealView Debugger Command Line Reference Guide:
Alphabetical command reference for details of the BREAKINSTRUCTION and STATS commands
RealView ARMulator ISS User Guide.