aclmdlRIDebugJsonPrint
Applicable Products
|
Product |
Supported |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
☓ |
|
|
√ |
|
|
☓ |
Function
Exports the model running instance information to a file in JSON format in maintenance and test scenarios. The instance information includes the model ID, stream ID, task ID, and task type. Then, you can view the visualized model information in tracing mode (for example, chrome://tracing/).
Prototype
1
|
aclError aclmdlRIDebugJsonPrint(aclmdlRI modelRI, const char *path, uint32_t flags) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
modelRI |
Input |
Running instance of the model that is used to temporarily store the captured tasks. For details about the type definition, see aclmdlRI. Ensure that the value of modelRI is valid. |
|
path |
Input |
Path of the file to export to. The path includes the file name. Ensure that the file path exists and you have read and write permissions on it. Otherwise, this API returns a failure message. |
|
flags |
Input |
Configuration options. The options include the following macros:
The macros are defined as follows: #define ACL_MDLRI_DEBUG_JSON_PRINT_SUMMARY 0x0UL #define ACL_MDLRI_DEBUG_JSON_PRINT_VERBOSE 0x1UL |
Returns
0 on success; otherwise, failure. For details, see aclError.