22#include <unordered_map>
25#include "absl/strings/str_cat.h"
43 void AddInterval(
const uint64_t begin_time,
const uint64_t end_time);
50 const std::string& task_id) {
51 interval_event_log_file_path_ = absl::StrCat(path,
"_", task_id);
53 void LogIntervalEvent(
const std::string& name,
const std::string& description,
54 const uint64_t msg_time,
const uint64_t backward_time,
55 const uint64_t forward_time)
const;
58 std::vector<Interval> pool_;
59 std::vector<Interval>::iterator pool_iter_;
60 std::set<uint64_t> accu_end_values_;
61 std::string interval_event_log_file_path_;
The intervals collection class that organizes the intervals
void SetIntervalEventLogFilePath(const std::string &path, const std::string &task_id)
void PrintIntervals() const
void AddInterval(const Interval &interval)
bool MessageFallIntoRange(const uint64_t msg_time)
Interval GetNextInterval() const
void LogIntervalEvent(const std::string &name, const std::string &description, const uint64_t msg_time, const uint64_t backward_time, const uint64_t forward_time) const
#define DECLARE_SINGLETON(classname)