Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] update example to show how to get declared marks
[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 > [4.485137] [msg_test/INFO] Declared marks:
18 > [4.485137] [msg_test/INFO] msmark
19
20
21 p Testing tracing by process 
22 $ $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
23 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to '1'
24 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/msg/process' to '1'
25 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/buffer' to '1'
26 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'tracing/ms.trace'
27 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/categorized' to '1'
28 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/uncategorized' to '1'
29 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'triva/categorized' to 'tracing/ms.cat.plist'
30 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'triva/uncategorized' to 'tracing/ms.uncat.plist'
31 > [4.485137] [msg_test/INFO] Declared tracing categories:
32 > [4.485137] [msg_test/INFO] request
33 > [4.485137] [msg_test/INFO] finalize
34 > [4.485137] [msg_test/INFO] report
35 > [4.485137] [msg_test/INFO] compute
36 > [4.485137] [msg_test/INFO] Declared marks:
37 > [4.485137] [msg_test/INFO] msmark
38
39 $ $SG_TEST_EXENV cat tracing/ms.uncat.plist
40 > {
41 >   node = (LINK, HOST, );
42 >   edge = (0-HOST1-LINK14, 0-LINK14-HOST1, 0-LINK14-LINK14, );
43
44 >   host = {
45 >     type = square;
46 >     size = power;
47 >     values = (power_used);
48 >   };
49 >   link = {
50 >     type = rhombus;
51 >     size = bandwidth;
52 >     values = (bandwidth_used);
53 >   };
54 > }
55
56 $ $SG_TEST_EXENV cat tracing/ms.cat.plist
57 > {
58 >   node = (LINK, HOST, );
59 >   edge = (0-HOST1-LINK14, 0-LINK14-HOST1, 0-LINK14-LINK14, );
60
61 >   host = {
62 >     type = square;
63 >     size = power;
64 >     values = (prequest, pfinalize, preport, pcompute, );
65 >   };
66 >   link = {
67 >     type = rhombus;
68 >     size = bandwidth;
69 >     values = (brequest, bfinalize, breport, bcompute, );
70 >   };
71 > }
72
73 $ rm -rf tracing/ms.trace tracing/ms.cat.plist tracing/ms.uncat.plist