2.4.1. Configuring Profiler

Profiler has its own section in peripherals.ami, the ARMulator peripherals configuration file:


{ Default_Profiler=Profiler
;; For example - to profile the PC value when cache misses happen, set:
;Type=Event
;Event=0x00010001
;EventWord=pc
;;Alternatives for Type are
;;  Event, Cycle, Microsecond.
;;If type is Event then alternatives for EventWord are
;;  Word1,Word2,PC.
}

Every line in this section is a comment, so the ARMulator will perform its default profiling. The default is to take profiling samples at intervals of 100 microseconds. Refer to AXD and armsd Debuggers Guide for further information.

If this section is uncommented, data cache misses are profiled. See Events for more information.

The Type entry controls how the profiling interval is interpreted:

Type=Microsecond

instructs Profiler to take samples every n microseconds. This is the default.

Type=Cycle

instructs Profiler to take samples every n instructions, and record the number of memory cycles since the last sample.

Type=Event

instructs Profiler to profiles every relevant events, see Events. n is ignored.

EventMask=mask,value is also allowed (see Tracer).

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI0058D
Non-Confidential