Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: webrtc/logging/rtc_event_log/rtc_event_log2text.cc

Issue 2996933003: Add logging of host lookups made by TurnPort to the RtcEventLog. (Closed)
Patch Set: review Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 break; 559 break;
560 case webrtc::rtcp::Psfb::kPacketType: 560 case webrtc::rtcp::Psfb::kPacketType:
561 PrintPsFeedback(parsed_stream, rtcp_block, log_timestamp, 561 PrintPsFeedback(parsed_stream, rtcp_block, log_timestamp,
562 direction); 562 direction);
563 break; 563 break;
564 default: 564 default:
565 break; 565 break;
566 } 566 }
567 } 567 }
568 } 568 }
569 if (parsed_stream.GetEventType(i) ==
570 webrtc::ParsedRtcEventLog::HOST_LOOKUP_EVENT) {
571 int error;
572 int64_t elapsed_ms;
573 parsed_stream.GetHostLookup(i, &error, &elapsed_ms);
574 std::cout << parsed_stream.GetTimestamp(i)
575 << "\tHOST_LOOKUP"
576 << "\terror=" << error
577 << "\telapsed_ms=" << elapsed_ms
578 << std::endl;
579 }
569 } 580 }
570 return 0; 581 return 0;
571 } 582 }
OLDNEW
« no previous file with comments | « webrtc/logging/rtc_event_log/rtc_event_log2stats.cc ('k') | webrtc/logging/rtc_event_log/rtc_event_log_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698