MoSync 3.0.1
MAP::TraceScope Class Reference

Utility class for timing and marking the start and end of a block. More...

#include <MAP/TraceScope.h>

List of all members.

Public Member Functions

 TraceScope (const char *s)
virtual ~TraceScope ()

Detailed Description

Utility class for timing and marking the start and end of a block.

Prints a debug trace on creation, and one on destruction. Usage:

... { TraceScope scope( "MyFunc" ); ... } ...

Output:

+++ MyFunc --- 45 MyFunc


Constructor & Destructor Documentation

MAP::TraceScope::TraceScope ( const char *  s) [inline]
virtual MAP::TraceScope::~TraceScope ( ) [inline, virtual]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines