By default, the VTune(TM) Performance Analyzer stops sampling when the application terminates. However, when configuring the sampling collector, you can configure the conditions for stopping the data collection process.
From the Configure Sampling dialog box, click the General tab and use any of the following options:
Option |
Description |
---|---|
When application(s) terminate (before duration expires)
|
Use this option to stop data collection when the application terminates. For example, if the duration is 20 seconds but the application terminates after 10 seconds, then data collection stops after 10 seconds. If, however, the application runs longer than the specified duration, then data collection stops at the end of the specified duration. |
Maximum samples collected
|
Type in the maximum number of samples to collect. When the specified number of samples is collected, data collection stops. If the maximum number of sample counts is reached, the Activity is stopped even if duration is not completed. |
To stop data collection when application terminates, use: -sterm | -stop-on-term <yes|no>.
You can change this setting using the -sterm | -stop-on-term <yes|no> option. Type <yes> to stop the Activity when the application terminates, or type <no> to let the Activity run until the specified Duration elapses.
Command-line example:
>vtl activity -d 20 -c sampling -o "-term no -sterm no" -app /bin/pwd run
This example creates and runs an Activity with the sampling collector. The VTune analyzer will launch the application when the Activity is run and will not stop it when sampling completes.
use: -msc | -max-samples-to-collect <maximum number of samples to collect>.The default value is <no maximum>.
Command-line example:
>vtl activity -c sampling -o "-msc 300" run
This example creates an Activity with the sampling collector, runs the Activity using the default settings but only collects 300 samples and then stops collecting data.