Name
TAU_DISABLE_INSTRUMENTATION — Disables instrumentation
Synopsis
C/C++:
TAU_DISABLE_INSTRUMENTATION(
)
;
Fortran:
TAU_DISABLE_INSTRUMENTATION(
)
;
Description
TAU_DISABLE_INSTRUMENTATION
macro disables
all entry/exit instrumentation within all threads of a context. This
allows the user to selectively enable and disable instrumentation in
parts of his/her code. It is important to re-enable the instrumentation
within the same basic block and scope.
Example
C/C++ :
int main(int argc, char **argv) { foo(); TAU_DISABLE_INSTRUMENTATION(); for (int i =0; i < N; i++) { bar(); // not recorded } TAU_DISABLE_INSTRUMENTATION(); bar(); // recorded }
Fortran :
call TAU_DISABLE_INSTRUMENTATION() ... call TAU_DISABLE_INSTRUMENTATION()
Python:
import pytau pytau.enableInstrumentation() ... pytau.disableInstrumentation()