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/base/checks.h" |
| 16 #include "webrtc/base/logging.h" |
16 #include "webrtc/base/timeutils.h" | 17 #include "webrtc/base/timeutils.h" |
17 #include "webrtc/system_wrappers/include/logging.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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 } | 308 } |
309 | 309 |
310 void RtcEventLogHelperThread::ThreadOutputFunction(void* obj) { | 310 void RtcEventLogHelperThread::ThreadOutputFunction(void* obj) { |
311 RtcEventLogHelperThread* helper = static_cast<RtcEventLogHelperThread*>(obj); | 311 RtcEventLogHelperThread* helper = static_cast<RtcEventLogHelperThread*>(obj); |
312 helper->ProcessEvents(); | 312 helper->ProcessEvents(); |
313 } | 313 } |
314 | 314 |
315 } // namespace webrtc | 315 } // namespace webrtc |
316 | 316 |
317 #endif // ENABLE_RTC_EVENT_LOG | 317 #endif // ENABLE_RTC_EVENT_LOG |
OLD | NEW |