aclrtProfTrace
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Delivers a user-defined profiling logging task at a specified position on the network. This API is asynchronous.
Prototype
aclError aclrtProfTrace(void *userdata, int32_t length, aclrtStream stream)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
userdata |
Input |
Custom information. |
length |
Input |
Length of userdata, in bytes. It is recommended that length be set to 18 bytes. If it is less than 18 bytes, 0s are automatically added to the end of the data until the length reaches 18 bytes. If the length exceeds 18 bytes, an error is reported. |
stream |
Input |
Stream for executing the logging task. |
Returns
0 on success; else, failure. For details, see aclError.
Parent topic: Other APIs