
9-6
Debugger
9.2.2.1 User-Specified Profiling
When used with the cycle-accurate simulator, the debugger supports
profiling of selected areas of your project code. To use this feature, you
pipe-on
Sets the simulator pipeline on.
print-dcache
Prints contents of data cache to
stdout
.
print-icache
Prints contents of instruction cache to
stdout
.
print-opcode
Prints instruction opcode history to
stdout
.
print-pipe
Prints contents of the pipeline to
stdout
.
print-profile
Prints collected profile information to
stdout
.
print-rule [# | all]
Prints grouping rule to
stdout
2
.
print-stats
When cycle count is on, prints statistics to
stdout
.
print-stats-inc
Prints incremental statistics information to
stdout
.
pf
functionName start end
Collects profile information for
functionName
from
start
to
end
addresses. Follow by
profile-on
command to turn on the profile collector.
profile-func
Collects profile information for all functions in the program.
Follow by the
profile-on
command to turn on the profile
collector.
profile-off
Turns off profile collector.
profile-on
Turns on profile collector
reg-off
Sets the simulator register tracing off.
reg-on
Sets the simulator register tracing on.
trace-off
Sets the simulator trace off.
trace-on
Sets the simulator trace on.
1. This command may also be invoked without the target name. See
Section 9.3.1, “Generic Target-
Specific Commands”
on page
9-11
for details.
2. The optional arguments only work in sdbug400. zdbug and zdxbug only supports the display of the
grouping rules that are currently active.
Table 9.4
SDBUG Target ZSIM Commands (Cont.)
Command
Description
(Sheet 2 of 2)