Tegrastats output data

I have managed to output the tegrastats logfile to a text document, but is there a way to output this along with timestamps? It would be great if I could match up the temperature/clock speeds/memory to the time and plot a graph or something with this information!

Thanks in advance!

hello ngsteven97,

you may use date to show the current time, and enable the --interval options to configure the output time.

Usage: tegrastats [-option]
Options:
...
    --interval <millisec>   : sample the information in <milliseconds>

btw,
you may refer to this system monitoring utility, GitHub - rbonghi/jetson_stats: 📊 Simple package for monitoring and control your NVIDIA Jetson [Xavier NX, Nano, AGX Xavier, TX1, TX2],
that runs on the terminal and see and control realtime the status of your NVIDIA Jetson.
thanks