#include <string>#include "DSC_interface.hxx"#include <sys/time.h>#include <fstream>#include <sys/stat.h>#include <sstream>#include <stdlib.h>
Functions | |
| static void | initTrace (const std::string &containerName) |
| Initialize the trace file. | |
Variables | |
| static int | traceType = -1 |
| static int | traceLevel = -1 |
| static std::ofstream | traceFile |
| static std::ostream * | out |
| static void initTrace | ( | const std::string & | containerName | ) | [static] |
The trace file depends on an environment variable (DSC_TRACE). If this variable is equal to 1, the trace file is a file with the name : <TMPDIR>/<container name>="">.tce. In all other cases, the trace file is stderr The environment variable DSC_TRACELEVEL can be used to suppress the trace (value 0)
| containerName | the name of the container where the trace is built |
int traceType = -1 [static] |
int traceLevel = -1 [static] |
std::ofstream traceFile [static] |
std::ostream* out [static] |