Gromacs
2024.4
|
#include "gromacs/utility/basedefinitions.h"
Define basic tracing API for manual instrumentation.
This header implements a simple set of tracing range start/stop functions which can be used for manual instrumentation of application code. Since current use is only through the wallcycle module, we define two sets of start/stop functions corresponding to the main and sub-counters in the wallcycle module.
The current implementation supports the following tracing APIs:
Functions | |
static void | traceRangeStart (const char *rangeName, int rangeId) |
Start a main tracing region. More... | |
static void | traceSubRangeStart (const char *rangeName, int rangeId) |
Start a tracing sub-region. More... | |
static void | traceRangeEnd () |
End a main tracing region. More... | |
static void | traceSubRangeEnd () |
End a tracing sub-region. More... | |
static gmx_unused void | traceRangeStart (gmx_unused const char *rangeName, gmx_unused int rangeId) |
static gmx_unused void | traceSubRangeStart (gmx_unused const char *rangeName, gmx_unused int rangeId) |
|
static |
End a main tracing region.
Note that this should always be paired with a traceRangeStart().
|
static |
Start a main tracing region.
Note that the rangeId
argument is currently only used with NVTX for aiding in coloring of trace regions.
[in] | rangeName | String containing the name of the traced range. |
[in] | rangeId | Numeric ID of the range. |
|
static |
End a tracing sub-region.
Note that this should always be paired with a traceSubRangeStart().
|
static |
Start a tracing sub-region.
Note that the rangeId
argument is currently only used with NVTX for aiding in coloring of trace regions.
[in] | rangeName | String containing the name of the traced range. |
[in] | rangeId | Numeric ID of the range. |