Query: tau_context_event
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
TAU_CONTEXT_EVENT(3) TAU Instrumentation API TAU_CONTEXT_EVENT(3)NAMETAU_CONTEXT_EVENT - Triggers a context eventSYNOPSISC/C++: TAU_CONTEXT_EVENT(TauUserEvent variable, double value); Fortran: TAU_CONTEXT_EVENT(integer variable(2), real value);DESCRIPTIONTriggers a context event. A context event associates the name with the list of routines along the callstack. A context event tracks information like a user defined event and TAU records the maxima, minima, mean, std. deviation and the number of samples for each context event. A context event helps distinguish the data supplied by the user based on the location where an event occurs and the sequence of actions (routine/timer invocations) that preceeded the event. The depth of the the callstack embedded in the context event's name is specified by the user in the environment variable TAU_CALLPATH_DEPTH. If this variable is not specified, TAU uses a default depth of 2.EXAMPLEC/C++ : int f2(void) { static int count = 0; count ++; TAU_PROFILE("f2()", "(sleeps 2 sec, calls f3)", TAU_USER); TAU_REGISTER_CONTEXT_EVENT(event, "Iteration count"); /* if (count == 2) TAU_DISABLE_CONTEXT_EVENT(event); */ printf("Inside f2: sleeps 2 sec, calls f3 "); TAU_CONTEXT_EVENT(event, 232+count); sleep(2); f3(); return 0; } Fortran : integer memevent(2) / 0, 0 / save memevent call TAU_REGISTER_CONTEXT_EVENT(memevent, "STORAGEARY mem allocated') call TAU_CONTEXT_EVENT(memevent, SIZEOF(STORAGEARY)*sizeof(INTEGER))SEE ALSOTAU_REGISTER_CONTEXT_EVENT(3) 08/31/2005 TAU_CONTEXT_EVENT(3)
Related Man Pages |
---|
tau_context_event(3) - debian |
tau_get_event_vals(3) - debian |
tau_profile_set_context(3) - debian |
xtapppeekevent(3) - hpux |
xtapppeekevent(1) - hpux |
Similar Topics in the Unix Linux Community |
---|
TAU 2.17.1 (Default branch) |
Help with setting a variable! |
TAU 2.17.2 (Default branch) |
TAU 2.17.3 (Default branch) |
TAU 2.18.1 (Default branch) |