LabWindows/CVI

Content Type
Programming Language
Current manual

CVIProfGetCurrentThreadProfiling

CVIProfGetCurrentThreadProfiling

int CVIProfGetCurrentThreadProfiling (int *state);

Purpose

Gets the profiling state in the calling thread. This function only affects LabWindows/CVI applications built with profiling enabledprofiling enabled.

Notes Notes  
  • You must install the LabWindows/CVI Execution Profiler Toolkit to profile LabWindows/CVI applications.
  • The LabWindows/CVI Execution Profiler Toolkit can only profile source code compiled with the LabWindows/CVI compiler. Profiling source code compiled with third-party compilers is not supported.

(Linux) This function is not supported.

Parameters

Output
Name Type Description
state int Pass the address of an integer variable to get the profile state of the calling thread. A non-zero output value indicates that profiling is enabled in the calling thread and zero indicates that profiling is disabled in the calling thread.

Return Value

Name Type Description
status int Result of the function call.

Code Description
0 Operation completed successfully.
-1 Memory allocation failed in the Execution Profiler.
-2 An invalid argument was passed to the Execution Profiler.
-3 An invalid NULL pointer was passed to the Execution Profiler.
-4 Could not initialize the Execution Profiler.
-5 An unexpected fatal error occurred in the Execution Profiler.
-6 An unexpected error occurred in the Execution Profiler, probably because the program executed a non-local goto (lonjmp).

Additional Information

Library: Utility Library

Include file: utility.h

LabWindows/CVI compatibility: LabWindows/CVI 2009 and later

Was this information helpful?