|
static void | flushTrace (void) |
| Flush buffered trace messages to file.
|
|
static bool | isEnabled (void) |
| Check if tracing is enabled.
|
|
static void | setEnabled (bool) |
| Enable or disable tracing to file.
|
|
|
void | traceMessage (const RTMessage *) |
|
int | flush (void) override |
| Flushes the data written to the buffer.
|
|
|
static std::string | initTraceFile (void) |
|
static void | traceMS (const RTMessage *) |
|
|
std::string | _traceFile |
|
std::ofstream | _file |
|
RTMutex * | _mutex |
|
int | offset |
|
char | buffer [80] |
|
|
class | RTActor |
|
class | RTMessage |
|
|
virtual int | write (const char *data, int size) override |
| Write a string to the buffer.
|
|
virtual int | write (const char *data, int size)=0 |
| Write a string to the buffer.
|
|
virtual int | flush (void)=0 |
| Flushes the data written to the buffer.
|
|
◆ flush()
int RTTracer::flush |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
Flushes the data written to the buffer.
For some output buffers, the written data will not appear in the output until flush() has been called. For others explicit flushing is not needed.
- Returns
- 1 if successful, 0 otherwise
Implements RTOBuffer.
◆ flushTrace()
void RTTracer::flushTrace |
( |
void |
| ) |
|
|
static |
Flush buffered trace messages to file.
This function is called each time 'trace [on|off]' command is sent to the running application.
◆ isEnabled()
bool RTTracer::isEnabled |
( |
void |
| ) |
|
|
static |
Check if tracing is enabled.
- Returns
- true if yes, false if no.
◆ setEnabled()
static void RTTracer::setEnabled |
( |
bool |
| ) |
|
|
static |
Enable or disable tracing to file.
This function can be called many times during execution. When tracing status changes to disabled, information message saying that tracing is paused is written and all output is flushed to file.
The documentation for this class was generated from the following files: