![]() |
OpenNI 1.5.2
|
#include <XnOS.h>Go to the source code of this file.
Defines | |
| #define | INVALID_PROFILING_HANDLE -1 |
| #define | XN_PROFILING_START_SECTION(name) _XN_PROFILING_START_SECTION(name, FALSE) |
| #define | XN_PROFILING_START_MT_SECTION(name) _XN_PROFILING_START_SECTION(name, TRUE) |
| #define | XN_PROFILING_END_SECTION |
| #define | XN_PROFILING_START_FUNCTION XN_PROFILING_START_SECTION(__FUNCTION__) |
| #define | XN_PROFILING_END_FUNCTION XN_PROFILING_END_SECTION |
Typedefs | |
| typedef XnInt32 | XnProfilingHandle |
Functions | |
| XN_C_API XnStatus XN_C_DECL | xnProfilingInit (XnUInt32 nProfilingInterval=0) |
| XN_C_API XnStatus XN_C_DECL | xnProfilingInitFromINI (const XnChar *cpINIFileName, const XnChar *cpSectionName) |
| XN_C_API XnStatus XN_C_DECL | xnProfilingShutdown () |
| XN_C_API XnBool XN_C_DECL | xnProfilingIsActive () |
| XN_C_API XnStatus XN_C_DECL | xnProfilingSectionStart (const char *csSectionName, XnBool bMT, XnProfilingHandle *pHandle) |
| XN_C_API XnStatus XN_C_DECL | xnProfilingSectionEnd (XnProfilingHandle *pHandle) |
| #define INVALID_PROFILING_HANDLE -1 |
Ends a profiled function.
| #define XN_PROFILING_END_SECTION |
if (__profiling != INVALID_PROFILING_HANDLE) \ { \ xnProfilingSectionEnd(&__profiling); \ } \ }
Ends a profiled section.
| #define XN_PROFILING_START_FUNCTION XN_PROFILING_START_SECTION(__FUNCTION__) |
Starts a profiled section, giving it the name of the current function. The code section between this declaration and the following XN_PROFILING_END_FUNCTION declaration will be time-measured.
| name | [in] The name of the section (for printing purposes). |
| #define XN_PROFILING_START_MT_SECTION | ( | name | ) | _XN_PROFILING_START_SECTION(name, TRUE) |
| #define XN_PROFILING_START_SECTION | ( | name | ) | _XN_PROFILING_START_SECTION(name, FALSE) |
| typedef XnInt32 XnProfilingHandle |
| XN_C_API XnStatus XN_C_DECL xnProfilingInit | ( | XnUInt32 | nProfilingInterval = 0 | ) |
Initializes profiling.
| nProfilingInterval | [in] The number of milliseconds between profiler printings. A value of zero means profiling is off. |
| XN_C_API XnStatus XN_C_DECL xnProfilingInitFromINI | ( | const XnChar * | cpINIFileName, |
| const XnChar * | cpSectionName | ||
| ) |
Initializes using INI file.
| cpINIFileName | [in] Name of INI file. |
| cpSectionName | [in] Name of section in INI file. |
| XN_C_API XnBool XN_C_DECL xnProfilingIsActive | ( | ) |
Returns TRUE if profiling is active, or FALSE otherwise.
| XN_C_API XnStatus XN_C_DECL xnProfilingSectionEnd | ( | XnProfilingHandle * | pHandle | ) |
Ends a profiled section. This function is not meant to be used directly. Please use the XN_PROFILING_END_SECTION macro.
| pHandle | [in] A handle returned from xnProfilingSectionStart. |
| XN_C_API XnStatus XN_C_DECL xnProfilingSectionStart | ( | const char * | csSectionName, |
| XnBool | bMT, | ||
| XnProfilingHandle * | pHandle | ||
| ) |
Start a profiled section. This function is not meant to be used directly. Please use the XN_PROFILING_START_SECTION macro.
| csSectionName | [in] The name of the profiled section. |
| bMT | [in] TRUE if this section is multi-threaded, FALSE otherwise. |
| pHandle | [out] A handle to be used each time this section executes again. |
| XN_C_API XnStatus XN_C_DECL xnProfilingShutdown | ( | ) |
Shuts down profiling.
1.7.6.1