Skip to content

Python tool to extract operation times from log file

Notifications You must be signed in to change notification settings

ubitransports/logTime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python main.py -h
usage: logTime [-h] [--list] [--steps {STEPS_GLOBAL,STEPS_V1,STEPS_V2,STEPS_V3}] [--export] [--occurrences NUMBER_OF_OCCURRENCES] filepath

Parse logs and print out operation measures.

positional arguments:
  filepath

options:
  -h, --help            show this help message and exit
  --list                List available step lists
  --steps {STEPS_GLOBAL,STEPS_V1,STEPS_V2,STEPS_V3}
  --export              Export to CSV file
  --occurrences NUMBER_OF_OCCURRENCES
                        Number of occurrences to take into account

examples:

To print out mesures with latest steps definition

python main.py ../log_perfs/log_telpo_emv_2.txt --steps STEPS_V3

To export result to a CSV file to be used in a Google sheets/excel

python main.py ../log_perfs/log_telpo_emv_2.txt --steps STEPS_V3 --export

To avoid the first slow cases to affect the result you can limit the number of (latest) occurrences taken into account

python main.py ../log_perfs/log_telpo_emv_2.txt --steps STEPS_V3 --export --occurrences 20

About

Python tool to extract operation times from log file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages