Developer Guide

  • 2021.2
  • 06/11/2021
  • Public
Contents

Enable Log Output

The software toolkit uses logging internally. You can enable log output for applications.
  • To enable log output, set the TCC_LOG_LEVEL environment variable. Possible values:
    • TRACE
    • DEBUG
    • INFO
    • WARNING
    • ERROR
    • FATAL
    • NONE
The following example enables debug log output and prints the output to the console:
TCC_LOG_LEVEL=DEBUG tcc_cache_allocation_sample --collect --latency 200
  • To redirect log output to a file, set the TCC_LOG_TO_FILE environment variable.
    The following example enables debug log output and redirects the output to a file named
    somefile.log
    . The log file appears in the current directory. You can use a different file name.
    TCC_LOG_TO_FILE=somefile.log TCC_LOG_LEVEL=DEBUG tcc_cache_allocation_sample --collect --latency 200

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.