MeVisLab Toolbox Reference
MLProfilingManager Class Reference

#include <mlProfilingManager.h>

Static Public Member Functions

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

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 Function Documentation

◆ MLMetaProfile

friend class MLMetaProfile
friend

Definition at line 101 of file mlProfilingManager.h.

◆ MLMetaProfilePtr

friend class MLMetaProfilePtr
friend

Definition at line 102 of file mlProfilingManager.h.


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