Skip to content

Tool to run tegrastats and parse the obtained log file to extract useful data into a csv. It also allows for automated graph creation between values desired from the data parsed.

ssaraff98/tegrastats_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tegrastats_parser

A simple python algorithm to run Tegrastats and then parse data from the time-stamped log file obtained.

Command line options:

  1. --interval, -i (type=int, default=1000, help='Logging interval in milliseconds for tegrastats')
  2. --log_file, -f (type=string, default='output_log.txt', help='Log file name for tegrastats data')
  3. --only_parse, -p (help='Parse tegrastats log file without running tegrastats')
  4. --graph, -g (help='Plots some useful graphs from tegrastats data parsed')

Usage without generation of plots

python main.py --interval <logging_interval_in_mS> --log_file <path_to_log_file>/<name_of_log_file>.txt

Usage with generation of plots

python main.py --interval <logging_interval_in_mS> --log_file <path_to_log_file>/<name_of_log_file>.txt --graph

To stop running Tegrastats in the background and parse the log file, execute the following command

exit

Usage with only parsing of output text log file from tegrastats

python main.py --only_parse --interval <logging_interval_in_mS> --log_file <path_to_log_file>/<name_of_log_file>.txt

To only obtain plots using existing csv file, change the file name under the variable csv_file and execute the following command

python main.py --graph

To install all dependency libraries, execute the following command

pip3 install -r requirements.txt

About

Tool to run tegrastats and parse the obtained log file to extract useful data into a csv. It also allows for automated graph creation between values desired from the data parsed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages