dprof - a memory access profiling tool
dprof [-itimer [-ms n]]
[-hwpc [-cntr n] [-ovfl n]]
[-pcmin min] [-pcmax max]
[-damin min] [-damax max]
[-out file] [-pout dplace_file] [-threads_per_mem n]
The given command is executed and memory accesses are sampled; after
completion, dprof prepares a histogram of memory accesses. Histograms
are computed for each thread of multi-threaded applications that utilize
Use the interval timer as a sampling trigger.
Trigger every n milliseconds. The default is 10 milliseconds, this
is also the minimum value. Any value of n less than 10 will result
in an error.
Use R10000 hardware event counter overflow as a sampling trigger.
Use R10000 hardware event counter n as the event trigger. Default
is number of cycles; event 0.
Trigger after n events have occurred. Default is 10,000.
Ignore events that have a program counter smaller than min.
Ignore events that have a program counter larger than max.
Ignore memory operations that have a virtual addresses smaller than
Ignore memory operations that have a virtual addresses larger than
Use pagesize (16k bytes) granularity for memory access sampling.
Use cache linesize (128 bytes) size granularity for memory access
-hex Use hex (64 bytes) size granularity for memory access sampling.
-oct Use oct (32 bytes) size granularity for memory access sampling.
Use quad (16 bytes) size granularity for memory access sampling.
Use double (8 bytes) size granularity for memory access sampling.
-int Use int (4 bytes) size granularity for memory access sampling.
Sampling is not started until SIGUSR1 is received. Further SIGUSR1
signals toggle sampling off and on.
Output is sent to file rather than standard output.
Placement information suitable for dplace(1) is written to
When building dplace_file a thread assignment that assumes n threads
per memory is assumed.
To collect a memory access histogram from a program called a.out that
would normally be run by
% a.out < in > out
and place the resuls in a file called histogram one would simply
% dprof -out histogram a.out < in > out .
dprof options -hwpc, -cntr n and -ovfl n only apply to R10000 based
dplace(1), sproc(2), r10k_counters(5)
PPPPaaaaggggeeee 3333 [ Back ]