Function rust_hawktracer::ht_allocator_set[][src]

pub unsafe extern "C" fn ht_allocator_set(
    func: realloc_function,
    user_data: *mut c_void
)

Sets a global allocator for HawkTracer library.

The allocator is used for every allocation in the library. The function must be called before ht_init() function call. If custom allocator is not specified, default allocator will be used.

@param func an allocation function. @param user_data an opaque pointer passed to the allocator as a last argument.