Name

TAU_DYNAMIC_PROFILE — dynamic_profile a c++ function

Synopsis

TAU_DYNAMIC_PROFILE( function_name,  
  type,  
  group);  
char* or string&   function_name;
char* or string&   type;
taugroup_t   group;

description

TAU_DYNAMIC_PROFILE profiles a function dynamically creating a separate profile for each time the function is called. this macro defines the function and takes care of the timer start and stop as well. the timer will stop when the macro goes out of scope (as in c++ destruction).

example

int foo(char *str) {
  tau_dynamic_profile("foo","int (char *)",tau_default);
  ...
}