Pause Data Collection
You can configure the analysis run to launch the application but start collecting data after some delay or pause the data collection in the middle of the application execution. This is useful if you do not want to include all the warm-up activities in the analysis results or you want the data collection to start when a specific event occurs (for example, message box or mouse click).
Intel® VTune™
provides several options to pause and resume your analysis: Profiler
- Start running an application with the data collection paused, and then manually resume the data collection when required.
- Use thePause/Resumebutton to pause the data collection at any time of application execution.
- Use the Pause/Resume API to insert calls into your code to start and stop the analysis.
Start Data Collection Paused, Then Manually Resume
To manually start and resume the analysis, do the following:
- Click theConfigure Analysisbutton on the toolbar.TheNew Amplifier Resultresult tab opens.
- Specify and configure your analysis target on theWHATpane.
- Switch to theHOWpane and click the Browse button to select and configure, if required, an analysis type.
- Click theStart Pausedbutton on the command bar.VTuneruns the application. TheProfilerStart Pausedbutton is replaced with theResumebutton.
- Click theResumebutton on the command bar to start data collection.
Use the Pause/Resume Button to Pause at Any Time of Application Execution
- Click theStartbutton on the command bar to run the selected analysis.When analysis starts running, the command bar is updated with a set of analysis management buttons.
- When you need to pause the collection, click thePausebutton on the command bar.VTunecollects no data but your application keeps running. TheProfilerStartbutton on the command bar is replaced with theResumebutton.
- When you need to resume the data collection, click theResumebutton on the command bar.VTunecontinues collecting data.Profiler
Use the Pause/Resume API to Insert Calls into Your Code to Start and Stop the Analysis
To get details on using the Pause/Resume API, see the
Collection Control API topic.
When the data collection is complete, the
VTune
displays paused regions in the Timeline pane as follows:
Profiler
