Download Simics User Guide for Unix

Transcript
13.3. Examining the Profile
16999640 (17000k) counts shown. 141 not shown.
Here, we have zoomed in on the 19 bits of address space containing the address 0x1f800000.
It is also possible to specify exactly what address interval you are interested in; see the Simics
Reference Manual or the online help for address-profile-data.
If you want to see the current numbers every time you disassemble code, use the command aprof-views to select the views you want:
simics> cpu0.aprof-views add = cpu0_branch_recorder view = 0
simics> si 5
[cpu0] <v:0x00000000f00066b4> <p:0x000000001f8066b4> 1183160 sllx %o1, 63, %o1
[cpu0] <v:0x00000000f00066b8> <p:0x000000001f8066b8> 1183160 jmpl [%o7 + 8], %g0
[cpu0] <v:0x00000000f00066bc> <p:0x000000001f8066bc> 1183160 andn %o0, %o1, %o0
[cpu0] <v:0x00000000f0012358> <p:0x000000001f812358> 1181028 cmp %o0, %i0
[cpu0] <v:0x00000000f001235c> <p:0x000000001f81235c> 1181028 bcs,pt %xcc, 0xf0012350
Note that since the disassembly printed by commands such as c and si are the instruction just about to execute, the statistics reflect the way things were immediately before that
instruction executed.
For most real-world profiling tasks, the above methods of looking at profile data are
inadequate. Unfortunately, Simics does not currently offer a way to display large sets of
profiling data in a user-friendly way; what it does offer is a few primitive operations (such
as accessing individual counters and summing all counters in an interval) that users can
call from their own scripts. See the Profiling API section in the Simics Reference Manual for
details.
166