adas_profile_print()

Updated: April 19, 2023

Stop profiling and print the profiling information of a critical section of an algorithm

Synopsis:

#include <adas/adas_external_algo.h>
adas_error_t adas_profile_print(const char *str,
                                uint64_t *time)

Arguments:

str
The format string to print; this argument is required for printing the elapsed time from the timestamp.
time
The timestamp value set by the call to adas_profile_init().

Library:

libadas

Description:

This function stops profiling an algorithm and prints the profiling information, which measures how much time has elapsed since the call to adas_profile_init().

Returns:

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