GithubHelp home page GithubHelp logo

neleon / tegrastats_parser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ssaraff98/tegrastats_parser

0.0 0.0 1.0 72 KB

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.

Python 100.00%

tegrastats_parser's Introduction

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

Usage with only parsing of output text log file from tegrastats then plots

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

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

tegrastats_parser's People

Contributors

ssaraff98 avatar tensorturtle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.