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;
61 proto::PerfConf perf_conf_;
62 std::string perf_file_ =
"";
65 const int kFlushSize = 512;
66 const uint64_t kEventQueueSize = 8192;
75 #endif // CYBER_EVENT_PERF_EVENT_CACHE_H_
std::shared_ptr< EventBase > EventBasePtr
Definition: perf_event_cache.h:38
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
std::string PerfFile()
Definition: perf_event_cache.h:47
SchedPerf
Definition: perf_event.h:48
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)
Definition: macros.h:52
TransPerf
Definition: perf_event.h:34
Definition: perf_event_cache.h:36
void AddSchedEvent(const SchedPerf event_id, const uint64_t cr_id, const int proc_id, const int cr_state=-1)