To run tegrastats

Note: Run the utility as root to display all enabled stats.
  • To run tegrastats in the background, execute the following command:
    tegrastats --interval <int> --logfile <out_file> &

    Where:

    • <int> is the interval between log prints in milliseconds.
    • <out_file> is the pathname of the output file to which tegrastats writes the log prints.
  • To run tegrastats in the foreground, omit the trailing ‘&'. You may also omit the --logfile option to allow log output to go to stdout:
tegrastats --interval <int>