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

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

Macros

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

Macro Definition Documentation

◆ ML_PROFILING_SCOPE

#define ML_PROFILING_SCOPE ( ProfilingIdentifier)
Value:
internal::ProfilingScope internal_scope; \
internal_metaProfile = getMetaProfile().get(); \
} \
}
MLTimeProfileHandle startMeasuring(const std::string &function, int userId, void *userData=nullptr, const std::string &filename="", int linenumber=-1, const std::string &nodeInfo="")
Starts measuring time.
static bool isProfilingEnabled()
Returns if profiling is enabled.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.

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.