int VT_tracestate (int * state)


Gets logging state of current thread.

Set by configuration options PROCESS/CLUSTER, modified by VT_traceon/off().

There are three states:

  • 0 = thread is logging

  • 1 = thread is currently not logging

  • 2 = logging has been turned off completely


Different threads within one process may be in state 0 and 1 at the same time because VT_traceon/off() sets the state of the calling thread, but not for the whole process.

State 2 is set through the configuration option PROCESS/CLUSTER NO for the whole process and cannot be changed.


VTTRACESTATE( state, ierr )

Return values

state is set to current state

Returns error code

For more complete information about compiler optimizations, see our Optimization Notice.
Select sticky button color: 
Orange (only for download buttons)