#define NN_PROF_DEFINE_CODEBLOCKNAMES_ENUM | ( | ... | ) |
Creates a code block enumeration which the profiler GUI can find in the DWARF data.
This function registers the names Code Blocks (the names that will appear on the Instrumented tab) in your ELF. The names are then pulled out of the ELF DWARF data by the PC to show names of code blocks. This is to conserve space in the recorded data when a code block is hit. If this API is not used, Code Blocks can still be used but rather than a name, they will only be displayed by a number on the PC.
All code block names should be entered in a list, as if this were an enum declaration. For example: