Name
TAU_ENABLE_INSTRUMENTATION — Enables instrumentation
Synopsis
C/C++:
TAU_ENABLE_INSTRUMENTATION();
Fortran:
TAU_ENABLE_INSTRUMENTATION();
Description
TAU_ENABLE_INSTRUMENTATION macro re-enables
all TAU instrumentation. All instances of functions and statements that
occur between the disable/enable section are ignored by TAU. This allows
a user to limit the trace size, if the macros are used to disable
recording of a set of iterations that have the same characteristics as,
for example, the first recorded instance.
Example
C/C++ :
int main(int argc, char **argv) {
foo();
TAU_DISABLE_INSTRUMENTATION();
for (int i =0; i < N; i++) {
bar(); // not recorded
}
TAU_ENABLE_INSTRUMENTATION();
bar(); // recorded
}
Fortran :
call TAU_DISABLE_INSTRUMENTATION()
...
call TAU_ENABLE_INSTRUMENTATION()
Python:
import pytau pytau.enableInstrumentation() ... pytau.disableInstrumentation()