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 whether profiling is enabled.
static bool isProfilingEnabled ()
 Returns whether 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 whether the time profiling graph is enabled.
static bool isTimeProfilingGraphEnabled ()
 Returns whether 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 ()
 Returns access to the global recursive mutex of the profiling.
static void enableTracing (const char *filename)
 Enables call tracing and set the trace filname.
static void disableTracing ()
 Disables call tracing.
static bool isTracingEnabled ()
 Returns whether call tracing is enabled.

Friends

class MLMetaProfile
class MLMetaProfilePtr

Detailed Description

Definition at line 37 of file mlProfilingManager.h.

Member Function Documentation

◆ byteToHumanReadable()

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

Converts the number of bytes into a human-readable representation.

◆ deinitialize()

void MLProfilingManager::deinitialize ( )
static

Destroys the singleton.

◆ disableTracing()

void MLProfilingManager::disableTracing ( )
static

Disables call tracing.

◆ enableTracing()

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

Enables 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.

Referenced by resetAllProfilingData().

◆ globalMutex()

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

Returns access to the global recursive mutex of the profiling.

Definition at line 71 of file mlProfilingManager.h.

◆ initialize()

void MLProfilingManager::initialize ( )
static

Initializes the singleton.

◆ isProfilingEnabled()

bool MLProfilingManager::isProfilingEnabled ( )
inlinestatic

Returns whether profiling is enabled.

Definition at line 50 of file mlProfilingManager.h.

◆ isTimeProfilingGraphEnabled()

bool MLProfilingManager::isTimeProfilingGraphEnabled ( )
inlinestatic

Returns whether the time profiling graph is enabled.

Definition at line 62 of file mlProfilingManager.h.

◆ isTracingEnabled()

bool MLProfilingManager::isTracingEnabled ( )
static

Returns whether call tracing is enabled.

References MLMetaProfile, and MLMetaProfilePtr.

◆ resetAllProfilingData()

void MLProfilingManager::resetAllProfilingData ( )
static

Resets all profiling data.

References getCurrentTime().

◆ setProfilingEnabled()

void MLProfilingManager::setProfilingEnabled ( bool enabled)
static

Sets whether profiling is enabled.

◆ setTimeProfilingGraphEnabled()

void MLProfilingManager::setTimeProfilingGraphEnabled ( bool enabled)
inlinestatic

Sets whether the time profiling graph is enabled.

Definition at line 59 of file mlProfilingManager.h.

◆ timeToHumanReadable()

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

Converts the time into a human-readable representation.

◆ MLMetaProfile

friend class MLMetaProfile
friend

Definition at line 101 of file mlProfilingManager.h.

References MLMetaProfile.

Referenced by isTracingEnabled(), and MLMetaProfile.

◆ MLMetaProfilePtr

friend class MLMetaProfilePtr
friend

Definition at line 102 of file mlProfilingManager.h.

References MLMetaProfilePtr.

Referenced by isTracingEnabled(), and MLMetaProfilePtr.


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