5 #ifndef CVMFS_TRACER_H_
6 #define CVMFS_TRACER_H_ 1
51 void Activate(
const int buffer_size,
const int flush_threshold,
52 const std::string &trace_file);
57 const std::
string &
msg)
99 int32_t
DoTrace(
const int event,
101 const std::string &
msg);
134 #endif // CVMFS_TRACER_H_
void Activate(const int buffer_size, const int flush_threshold, const std::string &trace_file)
void GetTimespecRel(const int64_t ms, timespec *ts)
void const PathString const std::string & msg
static void * MainFlush(void *data)
pthread_mutex_t sig_flush_mutex_
void __attribute__((used)) Trace(const int event
int WriteCsvFile(FILE *fp, const std::string &field)
pthread_cond_t sig_flush_
pthread_cond_t sig_continue_trace_
atomic_int32 flush_immediately_
int32_t DoTrace(const int event, const PathString &path, const std::string &msg)
static const int kEventFlush
atomic_int32 terminate_flush_thread_
static const int kEventStart
BufferEntry * ring_buffer_
void const PathString & path
static const int kEventStop
bool __attribute__((used)) IsActive()
pthread_mutex_t sig_continue_trace_mutex_
atomic_int32 * commit_buffer_