MeVisLab Toolbox Reference
mlModuleProfiling.h File Reference
#include <mlTypeDefs.h>
#include <mlProfilingManager.h>

Go to the source code of this file.

Classes

class  ml::internal::ProfilingScope
 Helper class that stops measuring when it gets out of scope. More...
 

Namespaces

 ml
 Main documentation file for ML users and developers.
 
 ml::internal
 

Macros

#define ML_PROFILING_SCOPE(ProfilingIdentifier)
 Starts profiling using the ML Profiling Manager. More...
 

Macro Definition Documentation

◆ ML_PROFILING_SCOPE

#define ML_PROFILING_SCOPE (   ProfilingIdentifier)
Value:
internal::ProfilingScope internal_scope; \
MLMetaProfile* internal_metaProfile = NULL; \
internal_metaProfile = getMetaProfile().get(); \
if (internal_metaProfile) { \
internal_scope.startMeasuring(internal_metaProfile, ProfilingIdentifier, MLMetaProfile::MLCall, this); \
} \
}
static bool isProfilingEnabled()
Returns if profiling is enabled.

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.