Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] update example to show how to use TRACE_get_categories
[simgrid.git] / examples / msg / tracing / ms.tesh
1 #! ./tesh
2
3 p Tracing master/slave application
4 $ $SG_TEST_EXENV ${bindir:=.}/tracing/ms$EXEEXT --cfg=tracing:1 --cfg=tracing/buffer:1 --cfg=tracing/filename:tracing/ms.trace --cfg=tracing/categorized:1 --cfg=tracing/uncategorized:1 --cfg=triva/categorized:tracing/ms.cat.plist --cfg=triva/uncategorized:tracing/ms.uncat.plist ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/deployment.xml
5 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to '1'
6 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/buffer' to '1'
7 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'tracing/ms.trace'
8 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/categorized' to '1'
9 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/uncategorized' to '1'
10 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'triva/categorized' to 'tracing/ms.cat.plist'
11 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'triva/uncategorized' to 'tracing/ms.uncat.plist'
12 > [4.485137] [msg_test/INFO] Declared tracing categories:
13 > [4.485137] [msg_test/INFO] request
14 > [4.485137] [msg_test/INFO] finalize
15 > [4.485137] [msg_test/INFO] report
16 > [4.485137] [msg_test/INFO] compute
17
18 p Testing tracing by process 
19 $ $SG_TEST_EXENV ${bindir:=.}/tracing/ms$EXEEXT --cfg=tracing:1 --cfg=tracing/msg/process:1 --cfg=tracing/buffer:1 --cfg=tracing/filename:tracing/ms.trace --cfg=tracing/categorized:1 --cfg=tracing/uncategorized:1 --cfg=triva/categorized:tracing/ms.cat.plist --cfg=triva/uncategorized:tracing/ms.uncat.plist ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/deployment.xml
20 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to '1'
21 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/msg/process' to '1'
22 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/buffer' to '1'
23 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'tracing/ms.trace'
24 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/categorized' to '1'
25 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/uncategorized' to '1'
26 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'triva/categorized' to 'tracing/ms.cat.plist'
27 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'triva/uncategorized' to 'tracing/ms.uncat.plist'
28 > [4.485137] [msg_test/INFO] Declared tracing categories:
29 > [4.485137] [msg_test/INFO] request
30 > [4.485137] [msg_test/INFO] finalize
31 > [4.485137] [msg_test/INFO] report
32 > [4.485137] [msg_test/INFO] compute
33
34 $ $SG_TEST_EXENV cat tracing/ms.uncat.plist
35 > {
36 >   node = (LINK, HOST, );
37 >   edge = (0-HOST1-LINK14, 0-LINK14-HOST1, 0-LINK14-LINK14, );
38
39 >   host = {
40 >     type = square;
41 >     size = power;
42 >     values = (power_used);
43 >   };
44 >   link = {
45 >     type = rhombus;
46 >     size = bandwidth;
47 >     values = (bandwidth_used);
48 >   };
49 > }
50
51 $ $SG_TEST_EXENV cat tracing/ms.cat.plist
52 > {
53 >   node = (LINK, HOST, );
54 >   edge = (0-HOST1-LINK14, 0-LINK14-HOST1, 0-LINK14-LINK14, );
55
56 >   host = {
57 >     type = square;
58 >     size = power;
59 >     values = (prequest, pfinalize, preport, pcompute, );
60 >   };
61 >   link = {
62 >     type = rhombus;
63 >     size = bandwidth;
64 >     values = (brequest, bfinalize, breport, bcompute, );
65 >   };
66 > }
67
68 $ rm -rf tracing/ms.trace tracing/ms.cat.plist tracing/ms.uncat.plist