Man Page: tau_register_thread
Operating Environment: debian
Section: 3
TAU_REGISTER_THREAD(3) TAU Instrumentation API TAU_REGISTER_THREAD(3)NAMETAU_REGISTER_THREAD - Register a thread with the profiling systemSYNOPSISC/C++: TAU_REGISTER_THREAD(void); Fortran: TAU_REGISTER_THREAD(void);DESCRIPTIONTo register a thread with the profiling system, invoke the TAU_REGISTER_THREAD macro in the run method of the thread prior to executing any other TAU macro. This sets up thread identifiers that are later used by the instrumentation system.EXAMPLEC/C++ : void * threaded_func(void *data) { TAU_REGISTER_THREAD(); { /**** NOTE WE START ANOTHER BLOCK IN THREAD */ TAU_PROFILE_TIMER(tautimer, "threaded_func()", "int ()", TAU_DEFAULT); TAU_PROFILE_START(tautimer); work(); /* work done by this thread */ TAU_PROFILE_STOP(tautimer); } return NULL; } Fortran : call TAU_REGISTER_THREAD()CAVEATPDT based tau_instrumentor does not insert TAU_REGISTER_THREAD calls, they must be inserted manually 08/31/2005 TAU_REGISTER_THREAD(3)
| Related Man Pages |
|---|
| tau_enable_instrumentation(3) - debian |
| tau_phase_create_dynamic(3) - debian |
| tau_profile_timer(3) - debian |
| tau_track_memory(3) - debian |
| thread_halt_self(9r) - osf1 |
| Similar Topics in the Unix Linux Community |
|---|
| Adding the individual columns of a matrix. |
| Detecting unused variables... |
| Find columns in a file based on header and print to new file |
| Weird 'find' results |
| New UNIX and Linux History Sections |