|
HawkTracer
0.10.0
|
Go to the source code of this file.
Macros | |
| #define | HT_TRUE 1 |
| Defines true value for the HT_Boolean type. More... | |
| #define | HT_FALSE 0 |
| Defines false value for the HT_Boolean type. More... | |
| #define | HT_INVALID_KLASS_ID ((HT_EventKlassId)-1) |
| Defines an invalid klass identifier. More... | |
| #define | HT_INVALID_FEATURE_ID ((uint32_t)-1) |
| Defines an invalid feature identifier. More... | |
Typedefs | |
| typedef uint64_t | HT_TimestampNs |
| An unsigned integer used for representing timestamps in nanoseconds. More... | |
| typedef uint64_t | HT_EventId |
| An unsigned integer used for event identifiers. More... | |
| typedef uint64_t | HT_DurationNs |
| An unsigned integer used for representing duration in nanoseconds. More... | |
| typedef int | HT_Boolean |
| A standard boolean type, possible values: HT_TRUE, HT_FALSE. More... | |
| typedef uint8_t * | TEventPtr |
| A pointer to a list of HT_Event (or derived) objects. More... | |
| typedef uint32_t | HT_ThreadId |
| An unsigned integer used for thread identifiers. More... | |
| typedef uint8_t | HT_Byte |
| An unsigned integer guaranteed to be 8 bits on all platforms. More... | |
| typedef void(* | HT_DestroyCallback) (void *data) |
| A type of function called to destroy data element. More... | |
Variables | |
| HT_DECLS_BEGIN typedef uint32_t | HT_EventKlassId |
| An unsigned integer used for event klass identifiers. More... | |
| #define HT_FALSE 0 |
Defines false value for the HT_Boolean type.
| #define HT_INVALID_FEATURE_ID ((uint32_t)-1) |
Defines an invalid feature identifier.
| #define HT_INVALID_KLASS_ID ((HT_EventKlassId)-1) |
Defines an invalid klass identifier.
| #define HT_TRUE 1 |
Defines true value for the HT_Boolean type.
| typedef int HT_Boolean |
| typedef void(* HT_DestroyCallback) (void *data) |
A type of function called to destroy data element.
It should free all the memory and resources held by the data element.
| data | the element to be destroyed. |
| typedef uint64_t HT_DurationNs |
An unsigned integer used for representing duration in nanoseconds.
| typedef uint64_t HT_EventId |
An unsigned integer used for event identifiers.
| typedef uint32_t HT_ThreadId |
An unsigned integer used for thread identifiers.
| typedef uint64_t HT_TimestampNs |
An unsigned integer used for representing timestamps in nanoseconds.
| enum HT_Endianness |
| enum HT_ErrorCode |
Defines list of possible errors returned by library functions.
| Enumerator | |
|---|---|
| HT_ERR_OK | No error. |
| HT_ERR_UNKNOWN | Unknown error. |
| HT_ERR_OUT_OF_MEMORY | Memory allocation failed. This is very serious error, and most likely your entire application is broken at this point of time. |
| HT_ERR_FEATURE_ALREADY_REGISTERED | Try to register a timeline feature using ID which is already taken by some other feature. |
| HT_ERR_FEATURE_NOT_REGISTERED | Try to use feature that has not been registered in the system. |
| HT_ERR_MAX_FEATURE_COUNT_REACHED | Try to register too many features in the system. |
| HT_ERR_LISTENER_CONTAINER_ALREADY_REGISTERED | Try to register container with name already used in registry. This error is used internally, and is never returned by public API. TODO: consider removing it from public enum. |
| HT_ERR_CANT_OPEN_FILE | Cannot open file. |
| HT_ERR_CANT_START_TCP_SERVER | Cannot start tcp server. This error might have many root causes, some of them are: socket can't be open, library is not able to bind to a port. |
| HT_ERR_CANT_CREATE_LISTENER_CONTAINER | Unable to create listener container. This is most likely caused by HT_ERR_OUT_OF_MEMORY occured internally in the library. |
| HT_ERR_INVALID_FORMAT | Format of an input data is invalid. |
| HT_ERR_INVALID_ARGUMENT | Invalid argument. |
| HT_ERR_OUT_OF_RANGE | Out of range. |
| HT_ERR_MISSING_ARGUMENT | Missing argument. |
Defines list of data types of event fields.
| HT_DECLS_BEGIN typedef uint32_t HT_EventKlassId |
An unsigned integer used for event klass identifiers.