Is there any way to define code regions (functions, modules etc) or time frame to profile and ignore anything else. For instance, if I have an application which sets up a large collection of objects (which takes a lot of CPU resources) then runs a relatively fast function A and exits, can I make VTune ignore anything except for A? I know that it is possible to zoom in using the timeline, but I'd rather send notifications from the application. Something like:
PrepareObjects();
StartCollectingData();
A();
StopCollectingData();
Or it would be nice to somehow select functions/classes of interest.
Is it possible in VTune?