TAU_PROFILE_STMT(3)

TAU_PROFILE_STMT3

Executes a statement only when tau is used.

Usage

C/C++:

TAU_PROFILE_STMT(statement statement);

Overview

TAU_PROFILE_STMT executes a statement, or declares a variable that is used only during profiling or for execution of a statement that takes place only when the instrumentation is active. When instrumentation is inactive (i.e., when profiling and tracing are turned off as described in Chapter 2), all macros are defined as null.

Examples

C/C++ :

TAU_PROFILE_STMT(T obj;); // T is a template parameter)
TAU_TYPE_STRING(str, "void () " + CT(obj) );

Releases

Unchanged in 5 releases since Debian 4.0 (Etch).

  1. 4.0–9

From tau 2.17.3.1.dfsg-4.2 in Debian 9 (Stretch). Parsed by carta from the page's man source.