File IDiagLog.h

Parent directory (DiagLog)

Definition (DiagLog/IDiagLog.h)

Includes

Included By

Full File Listing

Typedefs

typedef void *Snpe_IDiagLog_Handle_t

A typedef to indicate a SNPE IDiagLog handle

Functions

Snpe_ErrorCode_t Snpe_IDiagLog_SetOptions(Snpe_IDiagLog_Handle_t handle, Snpe_Options_Handle_t loggingOptionsHandle)

Sets the options after initialization occurs.

Parameters
  • handle[in] : Handle to access IDiagLog

  • loggingOptions[in] : The options to set up diagnostic logging.

Returns

Error code if the options could not be set. Ensure logging is not started/ SNPE_SUCCESS otherwise

Snpe_Options_Handle_t Snpe_IDiagLog_GetOptions(Snpe_IDiagLog_Handle_t handle)

Gets the curent options for the diag logger.

Parameters

handle[in] : Handle to access IDiagLog

Returns

Handle to access DiagLog options.

Snpe_ErrorCode_t Snpe_IDiagLog_SetDiagLogMask(Snpe_IDiagLog_Handle_t handle, const char *mask)
Parameters
  • handle[in] : Handle to access IDiagLog

  • mask[in] : Allows for setting the log mask once diag logging has started

Returns

SNPE_SUCCESS if the level was set successfully.

Snpe_ErrorCode_t Snpe_IDiagLog_Start(Snpe_IDiagLog_Handle_t handle)

Enables logging.

Logging should be started prior to the instantiation of other SNPE_APIs to ensure all events are captured.

Parameters

handle[in] : Handle to access IDiagLog

Returns

SNPE_SUCCESS if diagnostic logging started successfully.

Snpe_ErrorCode_t Snpe_IDiagLog_Stop(Snpe_IDiagLog_Handle_t handle)

Disables logging.

Parameters

handle[in] : Handle to access IDiagLog

Returns

SNPE_SUCCESS if logging stopped successfully. Error code otherwise.