Statistics
| Branch: | Revision:

iof-tools / logHandlers / parser / README.md @ 67493fe0

History | View | Annotate | Download (1.46 KB)

1
## Log parser
2

    
3
You can use this log parser to produce from the experiment folder fetched a file that
4
can be interpreted by the gnuplot plotter and with the sum-up of all the information.
5

    
6
### Read single experiment
7

    
8
You can use this script to get the information about just one experiment.
9
For example if the logs files of the experiments are in the folder: `iof-tools/Experiemnt1/logs/*`
10
You can use the following command to read them:
11

    
12
`python3 log_parser.py -f ../../RESULTS/run1/logs/* > logs.txt`
13

    
14
The option -f describe where the logs files are contained
15

    
16
### Read the average of multiple experiemnts
17

    
18
Sometimes you have done more runs of the same experiment and you would like to plot
19
the average of all this runs, you can create the average file descriptor with the log_parser.
20
The constraint is that you pass a folder to the parser, it expect to find in this folder a list
21
of folders that represent all the experiments, and inside of each of them there are only the
22
logs files.
23

    
24
If we have a folder with different runs at the following path: `iof-tools/fabr10runs/*`
25
you can use the following command:
26

    
27
`python log_parser.py -ff ../../fabr10runs/ > average10runs.txt`
28

    
29
### Other arguments
30

    
31
There are some more arguments to have more information inside your plot:
32
* -c Compute convergence delay
33
* -t Compute the number of updates generated
34
* -T ['SECS', 'DSEC', 'CSEC', 'MSEC'], time resolution (s/decimal/cent/milli)
35
* -d [delta_value], use this value to set a negative delta value