Searched refs:EventHistory (Results 1 – 9 of 9) sorted by relevance
29 void EventHistory::RecordEvent() { in RecordEvent()33 void EventHistory::ExpireEventsBefore(int seconds_ago, ClockType clock_type) { in ExpireEventsBefore()37 void EventHistory::RecordEventAndExpireEventsBefore(int seconds_ago, in RecordEventAndExpireEventsBefore()44 std::vector<std::string> EventHistory::ExtractWallClockToStrings() const { in ExtractWallClockToStrings()53 void EventHistory::RecordEventInternal(Timestamp now) { in RecordEventInternal()61 void EventHistory::ExpireEventsBeforeInternal(int seconds_ago, Timestamp now, in ExpireEventsBeforeInternal()87 int EventHistory::CountEventsWithinInterval(int seconds_ago, in CountEventsWithinInterval()
42 EventHistoryTest() : event_history_(new EventHistory()) { in EventHistoryTest()70 EventHistory::ClockType clock_type) { in ExpireEventsBefore()76 EventHistory::ClockType clock_type) { in RecordEventAndExpireEventsBefore()93 EventHistory::ClockType clock_type, in CountEventsWithinInterval()101 std::unique_ptr<EventHistory> event_history_;167 EventHistory::kClockTypeBoottime); in TEST_F()177 EventHistory::ClockType clock_type; in TEST_F()190 clock_type = EventHistory::kClockTypeMonotonic; in TEST_F()197 clock_type = EventHistory::kClockTypeBoottime; in TEST_F()215 EventHistory::kClockTypeBoottime); in TEST_F()[all …]
36 class SHILL_EXPORT EventHistory {43 EventHistory() : max_events_specified_(false), time_(Time::GetInstance()) {} in EventHistory() function44 explicit EventHistory(int max_events_saved) in EventHistory() function95 DISALLOW_COPY_AND_ASSIGN(EventHistory);
572 EventHistory dark_resume_history_;
1324 EventHistory::kClockTypeBoottime) >= kMaxDarkResumesPerPeriodShort || in OnDarkResume()1327 EventHistory::kClockTypeBoottime) >= kMaxDarkResumesPerPeriodLong) { in OnDarkResume()
966 EventHistory* GetDarkResumeHistory() { in GetDarkResumeHistory()
868 EventHistory disconnects_; // Connection drops.869 EventHistory misconnects_; // Failures to connect.
996 EventHistory* events = nullptr; in NoteDisconnectEvent()1014 EventHistory::kClockTypeMonotonic); in NoteDisconnectEvent()1048 EventHistory::kClockTypeMonotonic); in HasRecentConnectionIssues()1050 EventHistory::kClockTypeMonotonic); in HasRecentConnectionIssues()
152 EventHistory* GetDisconnects() { in GetDisconnects()155 EventHistory* GetMisconnects() { in GetMisconnects()166 void PushTimestamp(EventHistory* events, in PushTimestamp()1836 EventHistory* events = nullptr; in TEST_F()