pub fn pause()Expand description
Run the application without collecting data.
VTune Profiler reduces the overhead of collection, by collecting only critical information, such as thread and process creation.
§Effects
Pausing the data collection has the following effects:
- Data collection is paused for the whole program, not only within the current thread.
- Some runtime analysis overhead reduction.
The following APIs are not affected by pausing the data collection:
- Domain API
- String Handle API
- Thread Naming API
The following APIs are affected by pausing the data collection. Data is not collected for these APIs while in paused state:
- Task API
- Frame API
- Event API
- User-Defined Synchronization API
See the Collection Control API for more details.
§Example
ittapi::pause();
// Do initialization work here
ittapi::resume();
// Do profiling work here
ittapi::pause();
// Do finalization work here