adas_profile_init()

Updated: April 19, 2023

Start profiling of a critical section of an algorithm

Synopsis:

#include <adas/adas_external_algo.h>
adas_error_t adas_profile_init(uint64_t *time)

Arguments:

time
The timestamp value to set; you must pass this same value to adas_profile_print().

Library:

libadas

Description:

This function starts profiling an algorithm's critical section. The profiling will be applied from the time this function is called until adas_profile_print() is called.

Returns:

ADAS_EOK when the function successfully completes, otherwise another adas_error_t value that provides the reason that the call failed.