Developer Guide

  • 2021.2
  • 06/11/2021
  • Public
Contents

Single Measurement Sample

Samples are intended to demonstrate how to write code using certain features. They are not performance benchmarks. The output examples shown here are for illustration only. Your output may vary.
The single measurement sample (
tcc_measurement_single_workload_sample
) is a self-contained example program demonstrating how to use the measurement library to measure the latency of one part of an application, such as the overall real-time cycle.
The sample shows how you can use the library to collect various latency statistics in CPU clock cycles, nanoseconds, or microseconds. In addition, you can set and react to deadlines and store latency values in a circular shared memory buffer for external application processing.

File Locations

After installing the Intel® TCC Tools package on the target system, you can find sample sources and binaries in the following directories:
Target system:
  • Sample sources:
    /usr/share/tcc_tools/samples/tcc_measurement_single_workload_sample
  • Sample binaries:
    /usr/bin

Source Files

File
Description
src/main.c
Main file containing sample code.

Learn More

Read more about this sample and run the examples to see how it uses the measurement library:

Product and Performance Information

1

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