Last change
on this file since 1064 was
1009,
checked in by cfuguet, 9 years ago
|
add a new platform for the evaluation of the broadcast recovery
replication policy.
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/usr/bin/env awk -f |
---|
2 | ############################################################################### |
---|
3 | # @author : Cesar Armando Fuguet Tortolero |
---|
4 | # @date : jul 2015 |
---|
5 | # @desc : parse the output of the broadcast synthetic platform to |
---|
6 | # get statistics |
---|
7 | ############################################################################### |
---|
8 | BEGIN { |
---|
9 | FS="[ \t]*" |
---|
10 | cluster=0 |
---|
11 | |
---|
12 | # the name of the output file can be given with awk arguments |
---|
13 | # '-v statsname=<name>' |
---|
14 | if (!statsname) { |
---|
15 | statsname = "broadcast_stats.dat" |
---|
16 | } |
---|
17 | } |
---|
18 | |
---|
19 | /DSPIN_GENERATOR/ { |
---|
20 | name[cluster]=$2 |
---|
21 | FS=" *= *" |
---|
22 | } |
---|
23 | |
---|
24 | /[\t ]*-[\t ]*broadcast sent packets/ { |
---|
25 | sent[cluster]=$2 |
---|
26 | } |
---|
27 | |
---|
28 | /[\t ]*-[\t ]*fifo max fill status/ { |
---|
29 | fill[cluster]=$2 |
---|
30 | } |
---|
31 | |
---|
32 | /[\t ]*-[\t ]*broadcast latency/ { |
---|
33 | latency[cluster]=$2 |
---|
34 | } |
---|
35 | |
---|
36 | /[\t ]*-[\t ]*broadcast max latency/ { |
---|
37 | max[cluster]=$2 |
---|
38 | cluster++ |
---|
39 | FS="[ \t]*" |
---|
40 | } |
---|
41 | |
---|
42 | END { |
---|
43 | print "broadcast latency" > statsname |
---|
44 | print "name\t\t\tmean\t\tmax\t\tfill\t\tsent" >> statsname |
---|
45 | for (i = 0; i < cluster; i++) { |
---|
46 | print name[i] "\t\t" latency[i] "\t\t" max[i] "\t\t" \ |
---|
47 | fill[i] "\t\t" sent[i] >> statsname |
---|
48 | } |
---|
49 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.