OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/logging/rtc_event_log/rtc_event_log_helper_thread.h" | 11 #include "webrtc/logging/rtc_event_log/rtc_event_log_helper_thread.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 | 14 |
15 #include "webrtc/base/checks.h" | 15 #include "webrtc/rtc_base/checks.h" |
16 #include "webrtc/base/logging.h" | 16 #include "webrtc/rtc_base/logging.h" |
17 #include "webrtc/base/timeutils.h" | 17 #include "webrtc/rtc_base/timeutils.h" |
18 | 18 |
19 #ifdef ENABLE_RTC_EVENT_LOG | 19 #ifdef ENABLE_RTC_EVENT_LOG |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 namespace { | 23 namespace { |
24 const int kEventsInHistory = 10000; | 24 const int kEventsInHistory = 10000; |
25 | 25 |
26 bool IsConfigEvent(const rtclog::Event& event) { | 26 bool IsConfigEvent(const rtclog::Event& event) { |
27 rtclog::Event_EventType event_type = event.type(); | 27 rtclog::Event_EventType event_type = event.type(); |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 } | 306 } |
307 | 307 |
308 void RtcEventLogHelperThread::ThreadOutputFunction(void* obj) { | 308 void RtcEventLogHelperThread::ThreadOutputFunction(void* obj) { |
309 RtcEventLogHelperThread* helper = static_cast<RtcEventLogHelperThread*>(obj); | 309 RtcEventLogHelperThread* helper = static_cast<RtcEventLogHelperThread*>(obj); |
310 helper->ProcessEvents(); | 310 helper->ProcessEvents(); |
311 } | 311 } |
312 | 312 |
313 } // namespace webrtc | 313 } // namespace webrtc |
314 | 314 |
315 #endif // ENABLE_RTC_EVENT_LOG | 315 #endif // ENABLE_RTC_EVENT_LOG |
OLD | NEW |