Name

TAU_GET_PROFILE_GROUP — Creates groups based on names

Synopsis

C/C++:

TAU_GET_PROFILE_GROUP(groupname);
char *groupname;

Description

TAU_GET_PROFILE_GROUP allows the user to dynamically create groups based on strings, rather than use predefined, statically assigned groups such as TAU_USER1, TAU_USER2 etc. This allows names to be associated in creating unique groups that are more meaningful, using names of files or directories for instance.

Example

C/C++ :

#define PARTICLES TAU_GET_PROFILE_GROUP("PARTICLES")

void foo() {
  TAU_PROFILE("foo()", " ", PARTICLES);
}

void bar() {
  TAU_PROFILE("bar()", " ", PARTICLES);
}
    

Python:

import pytau

pytau.getProfileGroup("PARTICLES")