Crate rust_hawktracer[][src]

Macros

scoped_tracepoint

Structs

HT_CallstackBaseEvent
HT_CallstackIntEvent
HT_CallstackStringEvent
HT_Event
HT_EventKlassFieldInfoEvent
HT_EventKlassInfoEvent
HT_StringMappingEvent
_HT_EventIdProvider
_HT_EventKlass
_HT_FileDumpListener
_HT_Task
_HT_TaskScheduler
_HT_Timeline
_HT_TimelineListenerContainer
_Lldiv_t
_MKCREFLECT_FieldInfo
_MKCREFLECT_TypeInfo
_Mbstatet
__crt_locale_data
__crt_locale_data_public
__crt_locale_pointers
__crt_multibyte_data
_iobuf

Constants

BUFSIZ
E2BIG
EACCES
EADDRINUSE
EADDRNOTAVAIL
EAFNOSUPPORT
EAGAIN
EALREADY
EBADF
EBADMSG
EBUSY
ECANCELED
ECHILD
ECONNABORTED
ECONNREFUSED
ECONNRESET
EDEADLK
EDEADLOCK
EDESTADDRREQ
EDOM
EEXIST
EFAULT
EFBIG
EHOSTUNREACH
EIDRM
EILSEQ
EINPROGRESS
EINTR
EINVAL
EIO
EISCONN
EISDIR
ELOOP
EMFILE
EMLINK
EMSGSIZE
ENAMETOOLONG
ENETDOWN
ENETRESET
ENETUNREACH
ENFILE
ENOBUFS
ENODATA
ENODEV
ENOENT
ENOEXEC
ENOLCK
ENOLINK
ENOMEM
ENOMSG
ENOPROTOOPT
ENOSPC
ENOSR
ENOSTR
ENOSYS
ENOTCONN
ENOTDIR
ENOTEMPTY
ENOTRECOVERABLE
ENOTSOCK
ENOTSUP
ENOTTY
ENXIO
EOF
EOPNOTSUPP
EOTHER
EOVERFLOW
EOWNERDEAD
EPERM
EPIPE
EPROTO
EPROTONOSUPPORT
EPROTOTYPE
ERANGE
EROFS
ESPIPE
ESRCH
ETIME
ETIMEDOUT
ETXTBSY
EWOULDBLOCK
EXDEV
FILENAME_MAX
FOPEN_MAX
HT_ErrorCode_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_ErrorCode_HT_ERR_CANT_OPEN_FILE

Cannot open file.

HT_ErrorCode_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_ErrorCode_HT_ERR_FEATURE_ALREADY_REGISTERED

Try to register a timeline feature using ID which is already taken by some other feature.

HT_ErrorCode_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_ErrorCode_HT_ERR_OK

No error

HT_ErrorCode_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_FALSE
HT_FEATURE_CACHED_STRING
HT_FEATURE_CALLSTACK
HT_TIMELINE_MAX_FEATURES
HT_TRUE
HT_TaskSchedulingMode_HT_TASK_SCHEDULING_IGNORE_DELAYS

Ignores task execution delays; if the task has been run after the timeout, next task execution will be performed according to a schedule (so it won't be affected by a previous delay).

HT_TaskSchedulingMode_HT_TASK_SCHEDULING_RESTART_TIMER

Takes delays into account, and restarts the timer for the task after its execution; if task was delayed, next task will be executed after a @b period time of the previous execution.

HT_VERSION
HT_VERSION_MAJOR
HT_VERSION_MINOR
HT_VERSION_PATCH
L_tmpnam
L_tmpnam_s
MKCREFLECT_Types_MKCREFLECT_TYPES_DOUBLE
MKCREFLECT_Types_MKCREFLECT_TYPES_FLOAT
MKCREFLECT_Types_MKCREFLECT_TYPES_INTEGER
MKCREFLECT_Types_MKCREFLECT_TYPES_POINTER
MKCREFLECT_Types_MKCREFLECT_TYPES_STRING
MKCREFLECT_Types_MKCREFLECT_TYPES_STRUCT
PRIX8
PRIX16
PRIX32
PRIX64
PRIXFAST8
PRIXFAST16
PRIXFAST32
PRIXFAST64
PRIXLEAST8
PRIXLEAST16
PRIXLEAST32
PRIXLEAST64
PRIXMAX
PRIXPTR
PRId8
PRId16
PRId32
PRId64
PRIdFAST8
PRIdFAST16
PRIdFAST32
PRIdFAST64
PRIdLEAST8
PRIdLEAST16
PRIdLEAST32
PRIdLEAST64
PRIdMAX
PRIdPTR
PRIi8
PRIi16
PRIi32
PRIi64
PRIiFAST8
PRIiFAST16
PRIiFAST32
PRIiFAST64
PRIiLEAST8
PRIiLEAST16
PRIiLEAST32
PRIiLEAST64
PRIiMAX
PRIiPTR
PRIo8
PRIo16
PRIo32
PRIo64
PRIoFAST8
PRIoFAST16
PRIoFAST32
PRIoFAST64
PRIoLEAST8
PRIoLEAST16
PRIoLEAST32
PRIoLEAST64
PRIoMAX
PRIoPTR
PRIu8
PRIu16
PRIu32
PRIu64
PRIuFAST8
PRIuFAST16
PRIuFAST32
PRIuFAST64
PRIuLEAST8
PRIuLEAST16
PRIuLEAST32
PRIuLEAST64
PRIuMAX
PRIuPTR
PRIx8
PRIx16
PRIx32
PRIx64
PRIxFAST8
PRIxFAST16
PRIxFAST32
PRIxFAST64
PRIxLEAST8
PRIxLEAST16
PRIxLEAST32
PRIxLEAST64
PRIxMAX
PRIxPTR
SCNd8
SCNd16
SCNd32
SCNd64
SCNdFAST8
SCNdFAST16
SCNdFAST32
SCNdFAST64
SCNdLEAST8
SCNdLEAST16
SCNdLEAST32
SCNdLEAST64
SCNdMAX
SCNdPTR
SCNi8
SCNi16
SCNi32
SCNi64
SCNiFAST8
SCNiFAST16
SCNiFAST32
SCNiFAST64
SCNiLEAST8
SCNiLEAST16
SCNiLEAST32
SCNiLEAST64
SCNiMAX
SCNiPTR
SCNo8
SCNo16
SCNo32
SCNo64
SCNoFAST8
SCNoFAST16
SCNoFAST32
SCNoFAST64
SCNoLEAST8
SCNoLEAST16
SCNoLEAST32
SCNoLEAST64
SCNoMAX
SCNoPTR
SCNu8
SCNu16
SCNu32
SCNu64
SCNuFAST8
SCNuFAST16
SCNuFAST32
SCNuFAST64
SCNuLEAST8
SCNuLEAST16
SCNuLEAST32
SCNuLEAST64
SCNuMAX
SCNuPTR
SCNx8
SCNx16
SCNx32
SCNx64
SCNxFAST8
SCNxFAST16
SCNxFAST32
SCNxFAST64
SCNxLEAST8
SCNxLEAST16
SCNxLEAST32
SCNxLEAST64
SCNxMAX
SCNxPTR
SEEK_CUR
SEEK_END
SEEK_SET
STRUNCATE
SYS_OPEN
TMP_MAX
TMP_MAX_S
WCHAR_MAX
WCHAR_MIN
WINT_MAX
WINT_MIN
_ARGMAX
_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
_CRT_BUILD_DESKTOP_APP
_CRT_FUNCTIONS_REQUIRED
_CRT_INTERNAL_PRINTF_LEGACY_MSVCRT_COMPATIBILITY
_CRT_INTERNAL_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS
_CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION
_CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS
_CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR
_CRT_INTERNAL_SCANF_LEGACY_MSVCRT_COMPATIBILITY
_CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS
_CRT_INTERNAL_SCANF_SECURECRT
_CRT_INTERNAL_STDIO_SYMBOL_PREFIX
_CRT_INT_MAX
_CRT_PACKING
_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES
_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY
_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES
_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT
_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY
_HAS_EXCEPTIONS
_IOB_ENTRIES
_IOFBF
_IOLBF
_IONBF
_NLSCMPERROR
_NSTREAM_
_SAL_VERSION
_SECURECRT_FILL_BUFFER_PATTERN
_SYS_OPEN
_TMP_MAX_S
_USE_ATTRIBUTES_FOR_SAL
_USE_DECLSPECS_FOR_SAL
__GOT_SECURE_LIB__
__SAL_H_VERSION
__STDC_SECURE_LIB__
__STDC_WANT_SECURE_LIB__

Statics

__security_cookie

Functions

__acrt_iob_func
__doserrno
__p__commode
__report_gsfailure
__security_check_cookie
__security_init_cookie
__stdio_common_vfprintf
__stdio_common_vfprintf_p
__stdio_common_vfprintf_s
__stdio_common_vfscanf
__stdio_common_vfwprintf
__stdio_common_vfwprintf_p
__stdio_common_vfwprintf_s
__stdio_common_vfwscanf
__stdio_common_vsnprintf_s
__stdio_common_vsnwprintf_s
__stdio_common_vsprintf
__stdio_common_vsprintf_p
__stdio_common_vsprintf_s
__stdio_common_vsscanf
__stdio_common_vswprintf
__stdio_common_vswprintf_p
__stdio_common_vswprintf_s
__stdio_common_vswscanf
__strncnt
__va_start
__wcserror
__wcserror_s
_errno
_fclose_nolock
_fcloseall
_fdopen
_fflush_nolock
_fgetc_nolock
_fgetchar
_fgetwc_nolock
_fgetwchar
_fileno
_flushall
_fputc_nolock
_fputchar
_fputwc_nolock
_fputwchar
_fread_nolock
_fread_nolock_s
_fseek_nolock
_fseeki64
_fseeki64_nolock
_fsopen
_ftell_nolock
_ftelli64
_ftelli64_nolock
_fwrite_nolock
_get_doserrno
_get_errno
_get_printf_count_output
_get_stream_buffer_pointers
_getc_nolock
_getmaxstdio
_getw
_getwc_nolock
_getws_s
_invalid_parameter_noinfo
_invalid_parameter_noinfo_noreturn
_invoke_watson
_lock_file
_memccpy
_memicmp
_memicmp_l
_pclose
_popen
_putc_nolock
_putw
_putwc_nolock
_putws
_rmtmp
_set_doserrno
_set_errno
_set_printf_count_output
_setmaxstdio
_strcmpi
_strcoll_l
_strdup
_strerror
_strerror_s
_stricmp
_stricmp_l
_stricoll
_stricoll_l
_strlwr
_strlwr_l
_strlwr_s
_strlwr_s_l
_strncoll
_strncoll_l
_strnicmp
_strnicmp_l
_strnicoll
_strnicoll_l
_strnset
_strnset_s
_strrev
_strset
_strset_s
_strtoimax_l
_strtoumax_l
_strupr
_strupr_l
_strupr_s
_strupr_s_l
_strxfrm_l
_tempnam
_ungetc_nolock
_ungetwc_nolock
_unlink
_unlock_file
_wcscoll_l
_wcsdup
_wcserror
_wcserror_s
_wcsicmp
_wcsicmp_l
_wcsicoll
_wcsicoll_l
_wcslwr
_wcslwr_l
_wcslwr_s
_wcslwr_s_l
_wcsncoll
_wcsncoll_l
_wcsnicmp
_wcsnicmp_l
_wcsnicoll
_wcsnicoll_l
_wcsnset
_wcsnset_s
_wcsrev
_wcsset
_wcsset_s
_wcstoimax_l
_wcstoumax_l
_wcsupr
_wcsupr_l
_wcsupr_s
_wcsupr_s_l
_wcsxfrm_l
_wfdopen
_wfopen
_wfopen_s
_wfreopen
_wfreopen_s
_wfsopen
_wperror
_wpopen
_wremove
_wtempnam
_wtmpnam
_wtmpnam_s
clearerr
clearerr_s
create_hawktracer_instance
fclose
fcloseall
fdopen
feof
ferror
fflush
fgetc
fgetchar
fgetpos
fgets
fgetwc
fgetws
fileno
flushall
fopen
fopen_s
fputc
fputchar
fputs
fputwc
fputws
fread
fread_s
freopen
freopen_s
fseek
fsetpos
ftell
fwrite
getc
getchar
gets_s
getw
getwc
getwchar
ht_HT_CallstackBaseEvent_fnc_serialize
ht_HT_CallstackBaseEvent_get_event_klass_instance
ht_HT_CallstackBaseEvent_get_size
ht_HT_CallstackBaseEvent_register_event_klass
ht_HT_CallstackIntEvent_fnc_serialize
ht_HT_CallstackIntEvent_get_event_klass_instance
ht_HT_CallstackIntEvent_get_size
ht_HT_CallstackIntEvent_register_event_klass
ht_HT_CallstackStringEvent_fnc_serialize
ht_HT_CallstackStringEvent_get_event_klass_instance
ht_HT_CallstackStringEvent_get_size
ht_HT_CallstackStringEvent_register_event_klass
ht_HT_EventKlassFieldInfoEvent_fnc_serialize
ht_HT_EventKlassFieldInfoEvent_get_event_klass_instance
ht_HT_EventKlassFieldInfoEvent_get_size
ht_HT_EventKlassFieldInfoEvent_register_event_klass
ht_HT_EventKlassInfoEvent_fnc_serialize
ht_HT_EventKlassInfoEvent_get_event_klass_instance
ht_HT_EventKlassInfoEvent_get_size
ht_HT_EventKlassInfoEvent_register_event_klass
ht_HT_Event_fnc_serialize
ht_HT_Event_get_event_klass_instance
ht_HT_Event_get_size
ht_HT_Event_register_event_klass
ht_HT_StringMappingEvent_fnc_serialize
ht_HT_StringMappingEvent_get_event_klass_instance
ht_HT_StringMappingEvent_get_size
ht_HT_StringMappingEvent_register_event_klass
ht_alloc

Allocates memory using HawkTracer allocator.

ht_allocator_set

Sets a global allocator for HawkTracer library.

ht_deinit

Uninitializes HawkTracer library.

ht_event_id_provider_create

Creates a new instance of an ID provider.

ht_event_id_provider_destroy

Destroys a provider. @param provider a provider to destroy.

ht_event_id_provider_get_default

Gets default provider.

ht_event_id_provider_next

Gets next identifier.

ht_feature_cached_string_add_mapping
ht_feature_cached_string_disable
ht_feature_cached_string_enable
ht_feature_cached_string_push_map
ht_feature_callstack_disable
ht_feature_callstack_enable
ht_feature_callstack_start
ht_feature_callstack_start_int
ht_feature_callstack_start_string
ht_feature_callstack_stop
ht_file_dump_listener_callback
ht_file_dump_listener_create
ht_file_dump_listener_destroy
ht_find_or_create_listener

Finds an container in a global registry or create one if container doesn't exist.

ht_free

Releases memory allocated by ht_alloc.

ht_global_timeline_get
ht_init

Initializes HawkTracer library.

ht_monotonic_clock_get_timestamp

Gets a current timestamp of a monotonic clock.

ht_realloc

Changes the size of the memory block.

ht_registry_get_event_klasses
ht_registry_push_all_klass_info_events

Pushes HT_EventKlassInfoEvent and HT_EventKlassFieldInfoEvent events to a timeline which contain definitions of all registered klasses.

ht_registry_push_klass_info_event

Pushes HT_EventKlassInfoEvent and HT_EventKlassFieldInfoEvent events to a timeline which contain a definition of the klass.

ht_registry_register_event_klass

Registers new event klass in the system, or gets identifier if klass is already registered.

ht_registry_register_feature

Registers new a new feature in the system.

ht_task_scheduler_create

Creates an instance of the HT_TaskScheduler structure.

ht_task_scheduler_destroy

Destroys task scheduler data structure.

ht_task_scheduler_get_optimal_tick_period

Gets optimal tick period for scheduled tasks. The function returns the greatest common divisor of all task periods. E.g. for following periods of scheduled tasks: (10, 15, 25), optimal tick period is 5.

ht_task_scheduler_remove_task

Deletes a task from a scheduler.

ht_task_scheduler_schedule_task

Adds a new task to a scheduler. @param task_scheduler a pointer to the scheduler. @param mode a task scheduling mode. @sa HT_TaskSchedulingMode @param period a minimum time (in nanoseconds) between two executions of the task. @param callback a task's function. Can not be NULL. @param user_data a pointer to a data which is passed to a callback when executed.

ht_task_scheduler_tick

Executes scheduled tasks when they time out.

ht_thread_get_current_thread_id

Gets a unique identifier of the current thread.

ht_timeline_create
ht_timeline_destroy
ht_timeline_flush
ht_timeline_get_feature
ht_timeline_get_id_provider
ht_timeline_init_event
ht_timeline_listener_container_create
ht_timeline_listener_container_register_listener

Registers new listener to a container.

ht_timeline_listener_container_unref
ht_timeline_listener_container_unregister_all_listeners

Removes all timeline listeners from the container.

ht_timeline_push_event
ht_timeline_register_listener
ht_timeline_set_feature
ht_timeline_unregister_all_listeners
imaxabs
imaxdiv
memccpy
memchr
memcmp
memcpy
memicmp
memmove
memset
mkcreflect_get_HT_CallstackBaseEvent_type_info
mkcreflect_get_HT_CallstackIntEvent_type_info
mkcreflect_get_HT_CallstackStringEvent_type_info
mkcreflect_get_HT_EventKlassFieldInfoEvent_type_info
mkcreflect_get_HT_EventKlassInfoEvent_type_info
mkcreflect_get_HT_Event_type_info
mkcreflect_get_HT_StringMappingEvent_type_info
perror
putc
putchar
puts
putw
putwc
putwchar
remove
rename
rewind
rmtmp
setbuf
setvbuf
strcat
strcat_s
strchr
strcmp
strcmpi
strcoll
strcpy
strcpy_s
strcspn
strdup
strerror
strerror_s
stricmp
strlen
strlwr
strncat
strncat_s
strncmp
strncpy
strncpy_s
strnicmp
strnlen
strnset
strpbrk
strrchr
strrev
strset
strspn
strstr
strtoimax
strtok
strtok_s
strtoumax
strupr
strxfrm
tempnam
tmpfile
tmpfile_s
tmpnam
tmpnam_s
ungetc
ungetwc
unlink
wcscat
wcscat_s
wcschr
wcscmp
wcscoll
wcscpy
wcscpy_s
wcscspn
wcsdup
wcsicmp
wcsicoll
wcslen
wcslwr
wcsncat
wcsncat_s
wcsncmp
wcsncpy
wcsncpy_s
wcsnicmp
wcsnlen
wcsnset
wcspbrk
wcsrchr
wcsrev
wcsset
wcsspn
wcsstr
wcstoimax
wcstok
wcstok_s
wcstoumax
wcsupr
wcsxfrm

Type Definitions

FILE
HT_Boolean

A standard boolean type, possible values: #HT_TRUE, #HT_FALSE

HT_Byte

An unsigned integer guaranteed to be 8 bits on all platforms.

HT_CallstackEventLabel
HT_DurationNs

An unsigned integer used for representing duration in nanoseconds.

HT_ErrorCode

Defines list of possible errors returned by library functions.

HT_EventId

An unsigned integer used for event identifiers.

HT_EventIdProvider

HT_EventIdProvider is a sequence number generator. It starts the sequence from 0. Every next call of ht_event_id_provider_next() increments the identifier.

HT_EventKlass
HT_EventKlassId

An unsigned integer used for event klass identifiers.

HT_FeatureDisableCallback

A type of a callback which gets called when a timeline disables the feature.

HT_FileDumpListener
HT_Task
HT_TaskCallback

A task scheduler's callback.

HT_TaskId

A task scheduler's task identifier.

HT_TaskScheduler
HT_TaskSchedulingMode

Task scheduling mode.

HT_ThreadId

An unsigned integer used for thread identifiers.

HT_Timeline
HT_TimelineListenerCallback
HT_TimelineListenerContainer
HT_TimestampNs

An unsigned integer used for representing timestamps in nanoseconds.

MKCREFLECT_FieldInfo
MKCREFLECT_TypeInfo
MKCREFLECT_Types
TEventPtr

A pointer to a list of HT_Event (or derived) objects.

__crt_bool
__time32_t
__time64_t
__vcrt_bool
_locale_t
errno_t
fpos_t
imaxdiv_t
int_fast16_t
int_fast32_t
int_fast64_t
int_fast8_t
int_least16_t
int_least32_t
int_least64_t
int_least8_t
intmax_t
mbstate_t
realloc_function

Callback function for a custom allocator.

rsize_t
time_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_fast8_t
uint_least16_t
uint_least32_t
uint_least64_t
uint_least8_t
uintmax_t
va_list
wchar_t
wctype_t
wint_t