Poster of Linux kernelThe best gift for a Linux geek
TAU_DISABLE_CONTEXT_

TAU_DISABLE_CONTEXT_

Section: TAU Instrumentation API (3) Updated: 08/31/2005
Local index Up
 

NAME

TAU_DISABLE_CONTEXT_EVENT - Disable a context event  

SYNOPSIS

C/C++:

TAU_DISABLE_CONTEXT_EVENT(TauUserEvent event);
 

DESCRIPTION

Disables a context event.  

EXAMPLE

C/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);
  else
    TAU_ENABLE_CONTEXT_EVENT(event);

  printf("Inside f2: sleeps 2 sec, calls f3\n");

  TAU_CONTEXT_EVENT(event, 232+count);
  sleep(2);
  f3();
  return 0;
}
    
 

SEE ALSO

TAU_REGISTER_CONTEXT_EVENT(3), TAU_ENABLE_CONTEXT_EVENT(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:56:48 GMT, April 16, 2011