#include <stdint.h>
#include "os_thread.hpp"
+#include "os_process.hpp"
#include "trace_writer.hpp"
os::recursive_mutex mutex;
int acquired;
+ /**
+ * ID of the processed that opened the trace file.
+ */
+ os::ProcessId pid;
+
+ void checkProcessId();
+
public:
/**
* Should never called directly -- use localWriter singleton below
/**
* It will acquire the mutex.
*/
- unsigned beginEnter(const FunctionSig *sig);
-
+ unsigned beginEnter(const FunctionSig *sig, bool fake = false);
+
/**
* It will release the mutex.
*/