Vuo  1.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Macros | Functions | Variables
VuoLog.cc File Reference

Description

VuoLog implementation.

Classes

struct  VuoCrashReport_infoType
 Data to be inserted into OS X crash reports. More...
 

Macros

#define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES   0
 Avoid conflict between Cocoa and LLVM headers.
 
#define VuoCrashReport_alignment   __attribute__((aligned(8)))
 Align on 8-byte boundaries.
 

Functions

double VuoLogGetTime (void)
 Returns the number of seconds (including fractional seconds) since an arbitrary start time.
 
static void __attribute__ ((constructor)) VuoLog_init(void)
 Stores the time at which this module was loaded, for use by VuoLogGetElapsedTime().
 
void VuoLog_recordTime (const char *name, double time)
 Adds time to the specified profile name.
 
void __attribute__ ((destructor)) VuoLog_dumpProfile(void)
 Outputs all time profiles.
 
double VuoLogGetElapsedTime (void)
 Returns the number of seconds (including fractional seconds) since this module was loaded.
 
VuoCrashReport_infoType
VuoCrashReport 
__attribute__ ((section("__DATA,__crash_info")))
 Data to be inserted into OS X crash reports.
 
void VuoLog (const char *file, const unsigned int line, const char *function, const char *format,...)
 Outputs a message to the system log and to stderr.
 
bool VuoIsDebugEnabled (void)
 Returns true if debug mode is enabled.
 
char * VuoLog_copyCFDescription (const void *variable)
 Returns a C string description of variable, a reference to a CoreFoundation object.
 
void VuoLog_backtrace (void)
 Prints the stack backtrace to stderr.
 

Variables

double VuoLogStartTime
 The time when this module was loaded.
 
const int VuoLogHistoryItems = 20
 How many VLog messages to include in crash reports.
 
char * VuoLogHistory [VuoLogHistoryItems]
 VLog messages to include in crash reports.
 
dispatch_queue_t VuoLogHistoryQueue
 Serializes access to VuoLogHistory.
 

Class Documentation

struct VuoCrashReport_infoType
Class Members
unsigned int version VuoCrashReport_alignment
char *message VuoCrashReport_alignment
char *signature VuoCrashReport_alignment
char *backtrace VuoCrashReport_alignment
char *message2 VuoCrashReport_alignment
void *reserved VuoCrashReport_alignment
void *reserved2 VuoCrashReport_alignment

Macro Definition Documentation

#define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES   0

Avoid conflict between Cocoa and LLVM headers.

#define VuoCrashReport_alignment   __attribute__((aligned(8)))

Align on 8-byte boundaries.

Function Documentation

static void __attribute__ ( (constructor)  )
static

Stores the time at which this module was loaded, for use by VuoLogGetElapsedTime().

void __attribute__ ( (destructor)  )

Outputs all time profiles.

VuoCrashReport_infoType VuoCrashReport __attribute__ ( (section("__DATA,__crash_info"))  )

Data to be inserted into OS X crash reports.

Variable Documentation

char* VuoLogHistory[VuoLogHistoryItems]

VLog messages to include in crash reports.

const int VuoLogHistoryItems = 20

How many VLog messages to include in crash reports.

dispatch_queue_t VuoLogHistoryQueue

Serializes access to VuoLogHistory.

double VuoLogStartTime

The time when this module was loaded.