MeVisLab Toolbox Reference
MLProfilingManager Class Reference

#include <mlProfilingManager.h>

Static Public Member Functions

static void initialize ()
 Initializes the singleton.
 
static void deinitialize ()
 Destroys the singleton.
 
static void setProfilingEnabled (bool enabled)
 Sets if profiling is enabled.
 
static bool isProfilingEnabled ()
 Returns if profiling is enabled.
 
static std::string byteToHumanReadable (size_t bytes)
 Converts the number of bytes into a human readable representation.
 
static std::string timeToHumanReadable (double time)
 Converts the time into a human readable representation.
 
static void setTimeProfilingGraphEnabled (bool enabled)
 Sets if the time profiling graph is enabled.
 
static bool isTimeProfilingGraphEnabled ()
 Returns if the time profiling graph is enabled.
 
static void resetAllProfilingData ()
 Resets all profiling data.
 
static double getCurrentTime ()
 Returns the current time in seconds.
 
static ml::RecursiveMutexglobalMutex ()
 Get access to the global recursive mutex of the profiling.
 
static void enableTracing (const char *filename)
 Enable call tracing and set the trace filname.
 
static void disableTracing ()
 Disables call tracing.
 
static bool isTracingEnabled ()
 Returns if call tracing is enabled.
 

Friends

class MLMetaProfile
 
class MLMetaProfilePtr
 

Detailed Description

Definition at line 37 of file mlProfilingManager.h.

Member Function Documentation

◆ byteToHumanReadable()

static std::string MLProfilingManager::byteToHumanReadable ( size_t bytes)
static

Converts the number of bytes into a human readable representation.

◆ deinitialize()

static void MLProfilingManager::deinitialize ( )
static

Destroys the singleton.

◆ disableTracing()

static void MLProfilingManager::disableTracing ( )
static

Disables call tracing.

◆ enableTracing()

static void MLProfilingManager::enableTracing ( const char * filename)
static

Enable call tracing and set the trace filname.

◆ getCurrentTime()

double MLProfilingManager::getCurrentTime ( )
inlinestatic

Returns the current time in seconds.

Definition at line 109 of file mlProfilingManager.h.

◆ globalMutex()

static ml::RecursiveMutex & MLProfilingManager::globalMutex ( )
inlinestatic

Get access to the global recursive mutex of the profiling.

Definition at line 71 of file mlProfilingManager.h.

◆ initialize()

static void MLProfilingManager::initialize ( )
static

Initializes the singleton.

◆ isProfilingEnabled()

static bool MLProfilingManager::isProfilingEnabled ( )
inlinestatic

Returns if profiling is enabled.

Definition at line 50 of file mlProfilingManager.h.

◆ isTimeProfilingGraphEnabled()

static bool MLProfilingManager::isTimeProfilingGraphEnabled ( )
inlinestatic

Returns if the time profiling graph is enabled.

Definition at line 62 of file mlProfilingManager.h.

◆ isTracingEnabled()

static bool MLProfilingManager::isTracingEnabled ( )
static

Returns if call tracing is enabled.

◆ resetAllProfilingData()

static void MLProfilingManager::resetAllProfilingData ( )
static

Resets all profiling data.

◆ setProfilingEnabled()

static void MLProfilingManager::setProfilingEnabled ( bool enabled)
static

Sets if profiling is enabled.

◆ setTimeProfilingGraphEnabled()

static void MLProfilingManager::setTimeProfilingGraphEnabled ( bool enabled)
inlinestatic

Sets if the time profiling graph is enabled.

Definition at line 59 of file mlProfilingManager.h.

◆ timeToHumanReadable()

static std::string MLProfilingManager::timeToHumanReadable ( double time)
static

Converts the time into a human readable representation.

Friends And Related Symbol Documentation

◆ MLMetaProfile

Definition at line 101 of file mlProfilingManager.h.

◆ MLMetaProfilePtr

Definition at line 102 of file mlProfilingManager.h.


The documentation for this class was generated from the following file: