Limit Data Collection from Command Line

Limiting data collection prevents from collecting a large amount of data that may slow down the data processing. For example, it may happen when running Threading analysis on frequently contended applications or when analyzing long profiles.

Typically, the default maximum amount of raw data used by the Intel® VTune™ Amplifier for the result file is enough to identify a problem.

To limit the amount of raw data, use any of the following options:

Set the Maximum Possible Result File (in MB)

Use the data-limit command line option to limit the amount of raw data to be collected by setting the maximum possible result size (in MB). VTune Amplifier starts collecting data from the beginning of the target execution and suspends data collection when the specified limit for the result size is reached. For unlimited data size, specify 0.

> amplxe-cl -collect <analysis_type> -data-limit=<value> -- <target>


Start a Hotspots analysis on the specified Linux* target and limit the result size to 200 MB:

$ amplxe-cl -collect hotspots -data-limit=200 -- /home/test/myApplication

Set the Analysis Timer for the Last Seconds of Collection

Use the ring-buffer command line option to limit the amount of raw data to be collected by setting the timer that enables the analysis only for the last seconds before the target or collection is terminated. For example, if you specify 2 seconds as a time limit, the VTune Amplifier starts the data collection from the very beginning but saves the collected data only for the last 2 seconds before you terminate the collection.

> amplxe-cl -collect <analysis_type> -ring-buffer=<value> -- <target>


Enable a Hotspots analysis on the specified Windows* target for the last 10 seconds before the collection is terminated:

> amplxe-cl -collect hotspots -ring-buffer=10 -- C:\test\myApplication.exe

See Also

For more complete information about compiler optimizations, see our Optimization Notice.
Select sticky button color: 
Orange (only for download buttons)