User and Reference Guide

Contents

VT_registernamed

int VT_registernamed (const char * threadname, int thindex)
Description
Registers a new thread with Intel® Trace Collector under the given number and name.
Threads with the same number cannot have different names. If you try doing that, the thread uses the number, but not the new name.
Registering a thread twice with different names or numbers is an error. You can add a name to an already registered thread with
VT_registernamed("new name", -1)
if no name has been set before.
Parameters
threadname
desired name of the thread, or NULL/empty string if no name wanted
thindex
desired thread number, pass negative number to let Intel® Trace Collector pick a number
Return values
Returns error code, see VT_registerthread

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.