Thought I would share a little package that exposes the ITT collection control API bindings in Python. This allows you to run VTune Amplifier but just collect data you need from specific parts of the code. Hopefully this saves someone else a little bit of time! Available at this github repository.
import itt itt.pause() # ... some uninteresting code itt.resume() # ... some more interesting code itt.detach() # ... some uninteresting code again...