17#ifndef CYBER_EVENT_PERF_EVENT_CACHE_H_
18#define CYBER_EVENT_PERF_EVENT_CACHE_H_
26#include "cyber/proto/perf_conf.pb.h"
42 const int proc_id,
const int cr_state = -1);
44 const uint64_t msg_seq,
const uint64_t stamp = 0,
45 const std::string& adder =
"-");
55 std::thread io_thread_;
59 bool shutdown_ =
false;
62 std::string perf_file_ =
"";
65 const int kFlushSize = 512;
66 const uint64_t kEventQueueSize = 8192;
void AddSchedEvent(const SchedPerf event_id, const uint64_t cr_id, const int proc_id, const int cr_state=-1)
std::shared_ptr< EventBase > EventBasePtr
void AddTransportEvent(const TransPerf event_id, const uint64_t channel_id, const uint64_t msg_seq, const uint64_t stamp=0, const std::string &adder="-")
#define DECLARE_SINGLETON(classname)