Monitor Measurements Only
- From your host system, open two terminal windows.
- In the first terminal window, connect to the target system:ssh <user>@<target>
- In the SSH session, run the monitoring sample. The sample will wait for you to start the single measurement sample.TCC_MEASUREMENTS_BUFFERS=Approximation:10 TCC_MEASUREMENTS_TIME_UNIT=ns tcc_measurement_monitoring_samplewhere:ArgumentDescriptionTCC_MEASUREMENTS_BUFFERS=Approximation:10This argument specifies the measurement instance to collect:
TCC_MEASUREMENTS_TIME_UNIT=nsPrint measured latencies in nanoseconds.
- “Approximation” is the measurement name defined in the__itt_string_handle_createcall in thetcc_single_measurement_sample.
- “10” is the maximum number of measurements that can be stored for this measurement instance.
- In the second terminal window, connect to the target system:ssh <user>@<target>
- Start the single measurement sample:TCC_MEASUREMENTS_BUFFERS=Approximation:10 TCC_USE_SHARED_MEMORY=true tcc_single_measurement_sample -a 20 --iterations 10where:ArgumentDescriptionTCC_MEASUREMENTS_BUFFERS=Approximation:10This argument matches the argument in thetcc_measurement_monitoring_samplecommand.TCC_USE_SHARED_MEMORY=trueUse a shared memory ring buffer instead of a local buffer to store all measurement results.tcc_single_measurement_sample -a 20 --iterations 10The sample will calculate the 20th approximation of 2/pi and run 10 times.For more information about these command-line options, see Command-Line Options.
- Go back to the first terminal. You should see that the monitoring sample is printing latency measurements.
- Informational message with monitoring settings (measurement instance name and maximum number of measurements that can be stored)
- List of measurement results
- Total number of measurements
Initializing monitoring for "Approximation", buffer size 10 Approximation: 627 CPU cycles (223 ns) Approximation: 527 CPU cycles (187 ns) Approximation: 574 CPU cycles (204 ns) Approximation: 531 CPU cycles (189 ns) Approximation: 537 CPU cycles (191 ns) Approximation: 533 CPU cycles (190 ns) Approximation: 535 CPU cycles (190 ns) Approximation: 537 CPU cycles (191 ns) Approximation: 537 CPU cycles (191 ns) Approximation: 538 CPU cycles (191 ns) Count of read data: 10 Finishing monitoring