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

int VT_countsetcallback( VT_CountCallback_t callback, void *custom, int ncounters )
Sets a callback for counter sampling for the calling thread.
The data provided by the callback is logged with the same time stamp as the event that triggered the callback. The callback must be set for each thread individually. Setting
disables sampling for the thread.
address of the callback function or
opaque data that is passed to the callback function by the Intel® Trace Collector; can be used by the callback function to identify the thread or enabled counters
upper limit for the number of counters returned by the callback. It is not a problem to specify a number that is larger than the one that will be actually used, because the extra memory provided to the callback function will be reused efficiently.
Return values
Returns error code

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