• 2019 Update 3
  • 03/07/2019
  • Public Content
  • Download as PDF

These are wrappers around the C API calls which simplify instrumentation of C++ source code and ensure correct tracing if exceptions are used. Because all the member functions are provided as inline functions it is sufficient to include
to use these classes with every C++ compiler.
Here are some examples how the C++ API can be used.
uses the simpler interface without storing handles, while
saves these handles in static instances of the definition classes for later reuse when the function is called again:
void nohandles() { VT_Function func( "nohandles", "C++ API", __FILE__, __LINE__ ); } void handles() { static VT_SclDef scldef( __FILE__, __LINE__ ); // VT_SCL_DEF_CXX( scldef ) could be used instead static VT_FuncDef funcdef( "handles", "C++ API" ); VT_Function func( funcdef, scldef ); } int main( int argc, char **argv ) { VT_Region region( "call nohandles()", "main" ); nohandles(); region.end(); handles(); handles(); return 0; }

Product and Performance Information


Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804