1 |
This is dot2term, a program that converts graphs expressed in 'dot' |
# This is dot2term, a program that converts graphs expressed in 'dot' |
2 |
format, into the 'term representation' that can be handled by |
# format, into the 'term representation' that can be handled by |
3 |
uDrawGraph. |
# uDrawGraph. |
4 |
|
# |
5 |
WHY |
# WHY |
6 |
|
# |
7 |
The quattor tool 'panc-call-tree.pl' can output the include tree of a |
# The quattor tool 'panc-call-tree.pl' can output the include tree of a |
8 |
quattor machine profile; the supported formats are 'dot' and |
# quattor machine profile; the supported formats are 'dot' and |
9 |
'hypergraph'. 'dot' can be read by Graphviz [1] and 'hypergraph' can |
# 'hypergraph'. 'dot' can be read by Graphviz [1] and 'hypergraph' can |
10 |
be read by Hypergraph [2]. Neither of these tools allow for easy |
# be read by Hypergraph [2]. Neither of these tools allow for easy |
11 |
navigation of the graphs, nor (especially important to me) hiding |
# navigation of the graphs, nor (especially important to me) hiding |
12 |
various pieces of the subgraph, in order to be able to view the |
# various pieces of the subgraph, in order to be able to view the |
13 |
interesting part at a reasonable scale. |
# interesting part at a reasonable scale. The uDrawGraph [3] program |
14 |
|
# does allow such manipulations of the displayed graphs. |
15 |
WHAT |
# |
16 |
|
# WHAT |
17 |
* run the pan compiler on your favorite template with logging mode on. At Nikhef |
# |
18 |
the relevant command is |
# * run the pan compiler on your favorite template with logging mode on. At Nikhef |
19 |
makexprof -l call -f <cluster> <hostname> |
# the relevant command is |
20 |
|
# makexprof -l call -f <cluster> <hostname> |
21 |
* run panc-call-tree.pl; at Nikhef the relevant command is |
# |
22 |
panc-call-tree.pl $L/build/log/panc.log |
# * run panc-call-tree.pl; at Nikhef the relevant command is |
23 |
This will yield a file <hostname>.dot in the current working directory |
# panc-call-tree.pl $L/build/log/panc.log |
24 |
|
# This will yield a file <hostname>.dot in the current working directory |
25 |
* run dot2term |
# |
26 |
dot2term <hostname>.dot |
# * run dot2term |
27 |
This will yield a filename <hostname>.udg if the input file ended in '.dot'; |
# dot2term <hostname>.dot |
28 |
otherwise the output file will be called <inputfilename>.udg |
# This will yield a filename <hostname>.udg if the input file ended in '.dot'; |
29 |
|
# otherwise the output file will be called <inputfilename>.udg |
30 |
LIMITATIONS |
# |
31 |
|
# LIMITATIONS |
32 |
The 'dot' language includes many features; I only dealt with converting those encountered |
# |
33 |
in the output of panc-call-tree.pl. There are probably many dot files which cannot be |
# The 'dot' language includes many features; I only dealt with converting those encountered |
34 |
converted with this tool. |
# in the output of panc-call-tree.pl. There are probably many dot files which cannot be |
35 |
|
# converted with this tool. |
36 |
|
# |
37 |
|
# [1] http://www.graphviz.org/ |
38 |
|
# [2] http://hypergraph.sourceforge.net/ |
39 |
|
# [3] http://www.informatik.uni-bremen.de/uDrawGraph/en/uDrawGraph/uDrawGraph.html |