L0_DFX
Function Usage
Collects the delay statistics of the L0 API (Profiling) and prints input parameters.
Prototype
L0_DFX(profilingName, ...)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
profilingName |
Input |
Name of the L0 API on the host, for example, AddAiCore. |
... |
Input |
Input parameter of the L0 API on the host. It is a variable-length parameter. |
Constraints
- The L0_DFX macro must be placed in the first line of the L0 function to ensure the accuracy of delay statistics. Incorrect placement can lead to inaccurate statistics or undefined errors.
- When using this macro in the L0 function, do not enclose the macro with curly brackets. Otherwise, using them can lead to inaccurate delay statistics or undefined errors.
- Do not call the L0 API that uses the L0_DFX macro recursively or nest it within the function. This prevents conflicts in delay statistics logic.
Examples
1 2 | // Collect delay statistics of the L0 API AddAiCore and prints parameters. AddAiCore is the name, and self, other, and addOut are the parameters of the L0 API. L0_DFX(AddAiCore, self, other, addOut); |
Parent topic: Common Macros and Classes