TOC, 1, 2, 3,
4, 5, 6,
7, 8, 9,
10, 11, 12,
13, 14
9) PROFILING LINDA PROGRAMS
9.1) How can I profile my Linda program to
find out how to make it run faster?
Profiling is supported by Network
Linda. Link the program using the "-linda profile" clc
option.
Then, run the program as usual using ntsnet.
This will generate one
Linda trace file for each node. These files must be postprocessed by the
pgtrace
command to produce a single ParaGraph trace file. The
ParaGraph trace file can then be viewed using PG. For example,
lc -o prime -linda profile prime.cl
tsnet -n 4 prime 4 1000000 10000
0gtrace prime*.ltr > prime.trf
% PG prime.trf
9.2) What ParaGraph displays are useful to
use when viewing trace files produced by Linda?
Most displays can be
useful, except for the "Tasks" displays, which is not supported (there is no
means of defining tasks in Linda). Other utilization and communication displays,
such as Gantt, Kiviat, Spacetime, and Animation, can all be useful for
characterizing the performance of a Linda program.
TOC, 1, 2, 3,
4, 5, 6,
7, 8, 9,
10, 11, 12,
13, 14