#include <mlTypeDefs.h>
#include <mlProfilingManager.h>
Go to the source code of this file.
◆ ML_PROFILING_SCOPE
| #define ML_PROFILING_SCOPE |
( |
| ProfilingIdentifier | ) |
|
Value: internal::ProfilingScope internal_scope; \
if (MLProfilingManager::isProfilingEnabled()) { \
MLMetaProfile* internal_metaProfile = NULL; \
internal_metaProfile = getMetaProfile().get(); \
if (internal_metaProfile) { \
internal_scope.startMeasuring(internal_metaProfile, ProfilingIdentifier, MLMetaProfile::MLCall, this); \
} \
}
Starts profiling using the ML Profiling Manager. This can only be used in classes that implement getMetaProfile(), e.g., ml::Module.
Definition at line 48 of file mlModuleProfiling.h.