|
MoSync 3.0.1
|
Utility class for timing and marking the start and end of a block. More...
#include <MAP/TraceScope.h>
Public Member Functions | |
| TraceScope (const char *s) | |
| virtual | ~TraceScope () |
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
| MAP::TraceScope::TraceScope | ( | const char * | s | ) | [inline] |
References DebugPrintf(), and maGetMilliSecondCount().
| virtual MAP::TraceScope::~TraceScope | ( | ) | [inline, virtual] |
References DebugPrintf(), and maGetMilliSecondCount().