#include <stdarg.h>
#include "unicode/utypes.h"
Go to the source code of this file.
Typedefs | |
typedef U_CDECL_BEGIN enum UTraceLevel | UTraceLevel |
Trace severity levels. | |
typedef enum UTraceFunctionNumber | UTraceFunctionNumber |
These are the ICU functions that will be traced when tracing is enabled. | |
typedef void U_CALLCONV | UTraceEntry (const void *context, int32_t fnNumber) |
Type signature for the trace function to be called when entering a function. | |
typedef void U_CALLCONV | UTraceExit (const void *context, int32_t fnNumber, const char *fmt, va_list args) |
Type signature for the trace function to be called when exiting from a function. | |
typedef void U_CALLCONV | UTraceData (const void *context, int32_t fnNumber, int32_t level, const char *fmt, va_list args) |
Type signature for the trace function to be called from within an ICU function to display data or messages. | |
Functions | |
U_STABLE void | utrace_setLevel (int32_t traceLevel) |
Setter for the trace level. | |
U_STABLE int32_t | utrace_getLevel (void) |
Getter for the trace level. | |
U_STABLE void | utrace_setFunctions (const void *context, UTraceEntry *e, UTraceExit *x, UTraceData *d) |
Set ICU Tracing functions. | |
U_STABLE void | utrace_getFunctions (const void **context, UTraceEntry **e, UTraceExit **x, UTraceData **d) |
Get the currently installed ICU tracing functions. | |
U_STABLE int32_t | utrace_vformat (char *outBuf, int32_t capacity, int32_t indent, const char *fmt, va_list args) |
Trace output Formatter. | |
U_STABLE int32_t | utrace_format (char *outBuf, int32_t capacity, int32_t indent, const char *fmt,...) |
Trace output Formatter. | |
U_STABLE const char * | utrace_functionName (int32_t fnNumber) |
Get the name of a function from its trace function number. |
Definition in file utrace.h.
|
Type signature for the trace function to be called from within an ICU function to display data or messages.
|
|
Type signature for the trace function to be called when entering a function.
|
|
Type signature for the trace function to be called when exiting from a function.
|
|
These are the ICU functions that will be traced when tracing is enabled.
|
|
Trace severity levels. Higher levels increase the verbosity of the trace output.
|
|
Trace output Formatter. An application's UTraceData tracing functions may call this function to format any additional trace data, beyond that provided by default, in human readable form with the same formatting conventions used by utrace_vformat().
|
|
Get the name of a function from its trace function number.
|
|
Get the currently installed ICU tracing functions. Note that a null function pointer will be returned if no trace function has been set.
|
|
Getter for the trace level.
|
|
Set ICU Tracing functions. Installs application-provided tracing functions into ICU. After doing this, subsequent ICU operations will call back to the installed functions, providing a trace of the use of ICU. Passing a NULL pointer for a tracing function is allowed, and inhibits tracing action at points where that function would be called. Tracing and Threads: Tracing functions are global to a process, and will be called in response to ICU operations performed by any thread. If tracing of an individual thread is desired, the tracing functions must themselves filter by checking that the current thread is the desired thread.
|
|
Setter for the trace level.
|
|
Trace output Formatter. An application's UTraceData tracing functions may call back to this function to format the trace output in a human readable form. Note that a UTraceData function may choose to not format the data; it could, for example, save it in in the raw form it was received (more compact), leaving formatting for a later trace analyis tool.
|