---
name: "TAU_GET_PROFILE_GROUP"
section: "3"
platform: "linux"
package: "tau"
version: "2.17.3.1.dfsg-4.2"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/TAU_GET_PROFILE_GROUP"
---

# TAU\_GET\_PROFILE\_GROUP(3)

Creates groups based on names

## NAME

TAU\_GET\_PROFILE\_GROUP - Creates groups based on names

## SYNOPSIS

**C/C++:**

**TAU\_GET\_PROFILE\_GROUP(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);
}
```

## SEE ALSO

[TAU\_ENABLE\_GROUP\_NAME(3)](/TAU_ENABLE_GROUP_NAME/3.md), [TAU\_DISABLE\_GROUP\_NAME(3)](/TAU_DISABLE_GROUP_NAME/3.md), [TAU\_ENABLE\_ALL\_GROUPS(3)](/TAU_ENABLE_ALL_GROUPS/3.md), [TAU\_DISABLE\_ALL\_GROUPS(3)](/TAU_DISABLE_ALL_GROUPS/3.md)
