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

Description
In C++ an instance of this class should be created at the beginning of a function.
The constructor will then log the function entry, and the destructor the function exit.
Providing a source code location for the function exit manually is not supported, because this source code location would have to define where the function returns to. This cannot be determined at compile time.
Constructor & Destructor Documentation
VT_Function(const char *symname, const char *classname)
Defines the function with
VT_classdef()
and
VT_funcdef()
, then enters it.
This is less efficient than defining the function once and then reusing the handle. Silently ignores errors, like uninitialized Intel® Trace Collector.
Parameters:
symname
name of the function
classname
the class this function belongs to
VT_Function(const char *symname, const char *classname, const char *file, int line)
The same as the previous constructor, but also stores information about where the function is located in the source code.
Parameters:
symname
name of the function
classname
the class this function belongs to
file
name of source file, may but does not have to include path
line
line in this file where function starts
VT_Function(VT_FuncDef &funcdef)
This is a more efficient version which supports defining the function only once.
Parameters:
funcdef
this is a reference to the (usually static) instance that defines and remembers the function handle
VT_Function (VT_FuncDef &funcdef, VT_SclDef &scldef)
This is a more efficient version which supports defining the function and source code location only once.
Parameters:
funcdef
this is a reference to the (usually static) instance that defines and remembers the function handle
scldef
this is a reference to the (usually static) instance that defines and remembers the
scl
handle
~VT_Function()
The destructor marks the function exit.

Product and Performance Information

1

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