#include "axom/config.hpp"
#include "axom/core/utilities/nvtx/interface.hpp"
◆ AXOM_PERF_MARK_FUNCTION
#define AXOM_PERF_MARK_FUNCTION |
( |
|
__func_name__ | ) |
|
The AXOM_PERF_MARK_FUNCTION is used to annotate a function.
- Parameters
-
[in] | name | a user-supplied name to annotate the function. |
- Note
- Typically, the AXOM_PERF_MARK_FUNCTION is placed in the beginning of the function to annotate.
- Warning
- The AXOM_PERF_MARK_FUNCTION can only be called once within a given (function) scope.
Usage Example:
void foo( )
{
...
}
#define AXOM_PERF_MARK_FUNCTION(__func_name__)
The AXOM_PERF_MARK_FUNCTION is used to annotate a function.
Definition: AnnotationMacros.hpp:45
◆ AXOM_PERF_MARK_SECTION
#define AXOM_PERF_MARK_SECTION |
( |
|
__name__, |
|
|
|
... |
|
) |
| |
Value: do \
{ \
__VA_ARGS__ \
} while(false)
The AXOM_PERF_MARK_SECTION macro is used to annotate sections of code.
- Note
- In contrast to the AXOM_PERF_MARK_FUNCTION, the AXOM_PERF_MARK_SECTION macro is used to annotate sections of code at a much finer granularity within a given function and it may be use in conjunction with the AXOM_PERF_MARK_FUNCTION macro.
- Warning
- Variables declared within an AXOM_PERF_MARK_SECTION are only defined within the scope of the annotated section.
-
The AXOM_PERF_MARK_SECTION macro may not be called in a nested fashion, i.e., within another AXOM_PERF_MARK_SECTION
Usage Example:
void foo( )
{
{
...
} );
);
{
...
} );
);
}
#define AXOM_PERF_MARK_SECTION(__name__,...)
The AXOM_PERF_MARK_SECTION macro is used to annotate sections of code.
Definition: AnnotationMacros.hpp:94
#define AXOM_LAMBDA
Convenience macro used for lambda capture by value.
Definition: Macros.hpp:81
void for_all(const IndexType &begin, const IndexType &end, KernelType &&kernel) noexcept
Loops over a specified contiguous range, I:[begin,end-1].
Definition: for_all.hpp:51
std::int32_t IndexType
Definition: Types.hpp:66