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

Issue 2996933003: Add logging of host lookups made by TurnPort to the RtcEventLog. (Closed)

Created:
3 years, 4 months ago by jonaso
Modified:
3 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, AleBzk, henrika_webrtc, Andrew MacDonald, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add logging host lookups made by TurnPort to the RtcEventLog. The following fields are logged: - error, if there was an error. - elapsed time in milliseconds BUG=webrtc:8100 Review-Url: https://codereview.webrtc.org/2996933003 Cr-Commit-Position: refs/heads/master@{#19574} Committed: https://chromium.googlesource.com/external/webrtc/+/c251cb13c08aba710ba3a12588beb4aa172c7323

Patch Set 1 #

Patch Set 2 : Fix depenencies #

Patch Set 3 : fix uninit #

Patch Set 4 : fix unbuilt stuff?? #

Patch Set 5 : Add unittest of rtc_event_log changes #

Total comments: 3

Patch Set 6 : review - remove strings from proto #

Total comments: 6

Patch Set 7 : review #

Patch Set 8 : review #

Patch Set 9 : review #

Total comments: 4

Patch Set 10 : review #

Total comments: 6

Patch Set 11 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -48 lines) Patch
M webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log.cc View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log.proto View 1 2 3 4 5 6 3 chunks +13 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log2stats.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log2text.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_parser.h View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_parser.cc View 1 2 3 4 5 6 7 8 9 2 chunks +19 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.cc View 1 2 3 4 5 6 7 8 9 1 chunk +22 lines, -0 lines 0 comments Download
M webrtc/p2p/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/p2p/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/p2p/base/port_unittest.cc View 1 2 3 4 5 6 1 chunk +6 lines, -2 lines 0 comments Download
M webrtc/p2p/base/turnport.h View 5 chunks +13 lines, -6 lines 0 comments Download
M webrtc/p2p/base/turnport.cc View 1 2 3 4 5 6 chunks +32 lines, -15 lines 0 comments Download
M webrtc/p2p/base/turnport_unittest.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.h View 4 chunks +9 lines, -1 line 0 comments Download
M webrtc/p2p/client/basicportallocator.cc View 1 2 5 chunks +18 lines, -12 lines 0 comments Download
M webrtc/pc/peerconnectionfactory.cc View 1 chunk +7 lines, -6 lines 0 comments Download
M webrtc/rtc_base/asyncresolverinterface.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/rtc_base/nethelpers.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/rtc_base/nethelpers.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -1 line 0 comments Download
M webrtc/rtc_tools/event_log_visualizer/analyzer.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 76 (57 generated)
jonaso1
3 years, 4 months ago (2017-08-16 13:55:18 UTC) #24
terelius
I think we need to have a meeting to discuss these changes. FYI, we're currently ...
3 years, 4 months ago (2017-08-16 14:19:07 UTC) #25
pthatcher
I recall that we tried using RtcEventLog within in the p2p directory about 6-12 months ...
3 years, 4 months ago (2017-08-16 23:23:50 UTC) #27
jonaso1
PTAL - strings removed from proto - resolution lowered to millis - regarding using RtcEventLog ...
3 years, 4 months ago (2017-08-18 08:29:06 UTC) #32
terelius
Could you also update rtc_event_log2text please? looks good, but someone more familiar with the p2p ...
3 years, 4 months ago (2017-08-18 11:41:33 UTC) #33
jonaso1
Thanks for review. Fixed review comments. PTAL
3 years, 4 months ago (2017-08-21 08:22:35 UTC) #46
terelius
https://codereview.webrtc.org/2996933003/diff/160001/webrtc/logging/rtc_event_log/rtc_event_log.cc File webrtc/logging/rtc_event_log/rtc_event_log.cc (right): https://codereview.webrtc.org/2996933003/diff/160001/webrtc/logging/rtc_event_log/rtc_event_log.cc#newcode573 webrtc/logging/rtc_event_log/rtc_event_log.cc:573: int64_t elapsed_time_in_milliseconds) { nit: I'd prefer changing this to ...
3 years, 4 months ago (2017-08-21 09:38:14 UTC) #47
jonaso1
thx again, comments addressed. PTAL
3 years, 4 months ago (2017-08-21 11:26:50 UTC) #52
terelius
lgtm An owner need to make a policy decision for the proxy object in channel.cc. ...
3 years, 4 months ago (2017-08-21 11:41:54 UTC) #53
jonaso1
Hi solenberg@ Do you care top chip in regarding my (minor) modifications to webrtc/voice_engine/channel.cc Thx! ...
3 years, 4 months ago (2017-08-21 11:50:37 UTC) #55
the sun
On 2017/08/21 11:50:37, jonaso1 wrote: > Hi solenberg@ > > Do you care top chip ...
3 years, 4 months ago (2017-08-22 11:27:13 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2996933003/180001
3 years, 3 months ago (2017-08-25 09:09:48 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/20716)
3 years, 3 months ago (2017-08-25 09:13:58 UTC) #60
jonaso1
Hi pthatcher, I have now gotten LGTM from the other persons affected by this. Would ...
3 years, 3 months ago (2017-08-25 11:38:02 UTC) #61
Taylor Brandstetter
lgtm with nits https://codereview.webrtc.org/2996933003/diff/180001/webrtc/logging/rtc_event_log/rtc_event_log.h File webrtc/logging/rtc_event_log/rtc_event_log.h (right): https://codereview.webrtc.org/2996933003/diff/180001/webrtc/logging/rtc_event_log/rtc_event_log.h#newcode174 webrtc/logging/rtc_event_log/rtc_event_log.h:174: virtual void LogHostLookupResult(int error, Can this ...
3 years, 3 months ago (2017-08-29 02:30:56 UTC) #63
jonaso1
thx for comments. submitting https://codereview.webrtc.org/2996933003/diff/180001/webrtc/logging/rtc_event_log/rtc_event_log.h File webrtc/logging/rtc_event_log/rtc_event_log.h (right): https://codereview.webrtc.org/2996933003/diff/180001/webrtc/logging/rtc_event_log/rtc_event_log.h#newcode174 webrtc/logging/rtc_event_log/rtc_event_log.h:174: virtual void LogHostLookupResult(int error, On ...
3 years, 3 months ago (2017-08-29 10:18:28 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2996933003/200001
3 years, 3 months ago (2017-08-29 10:18:53 UTC) #72
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://chromium.googlesource.com/external/webrtc/+/c251cb13c08aba710ba3a12588beb4aa172c7323
3 years, 3 months ago (2017-08-29 10:21:06 UTC) #75
Max Morin WebRTC
3 years, 3 months ago (2017-08-29 11:48:40 UTC) #76
Message was sent while issue was closed.
A revert of this CL (patchset #11 id:200001) has been created in
https://codereview.webrtc.org/3012473002/ by maxmorin@webrtc.org.

The reason for reverting is: Breaks Chromium build due to the changed
constructor in webrtc/p2p/client/basicportallocator.h.

Build (example):
https://build.chromium.org/p/chromium.webrtc.fyi/builders/Linux%20Builder/bui....

Log:
FAILED: obj/remoting/protocol/protocol/port_allocator.o 
/b/c/goma_client/gomacc ../../third_party/llvm-build/Release+Asserts/bin/clang++
-MMD -MF obj/remoting/protocol/protocol/port_allocator.o.d
-DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1
-DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DFULL_SAFE_BROWSING
-DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD
-DFIELDTRIAL_TESTING_ENABLED -DCR_CLANG_REVISION=\"310694-2\"
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -D_DEBUG
-DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1
-D_GLIBCXX_DEBUG=1 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32
-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DEXPAT_RELATIVE_PATH
-DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DGOOGLE_PROTOBUF_NO_RTTI
-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DPROTOBUF_USE_DLLS
-DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DFEATURE_ENABLE_VOICEMAIL
-DGTEST_RELATIVE_PATH -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX
-DBORINGSSL_SHARED_LIBRARY -I../.. -Igen
-I../../build/linux/debian_jessie_amd64-sysroot/usr/include/glib-2.0
-I../../build/linux/debian_jessie_amd64-sysroot/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I../../third_party/libwebp/src -I../../third_party/khronos -I../../gpu
-I../../third_party/protobuf/src -Igen/protoc_out
-I../../third_party/protobuf/src -I../../third_party/webrtc_overrides
-I../../testing/gtest/include -I../../third_party
-I../../third_party/webrtc_overrides -I../../third_party
-I../../third_party/boringssl/src/include
-I../../build/linux/debian_jessie_amd64-sysroot/usr/include/nss
-I../../build/linux/debian_jessie_amd64-sysroot/usr/include/nspr
-I../../third_party/libyuv/include -fno-strict-aliasing
--param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined
-D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe
-B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics
-fdebug-prefix-map=/b/c/b/Linux_Builder__dbg_/src=. -m64 -march=x86-64 -Wall
-Werror -Wextra -Wno-missing-field-initializers -Wno-unused-parameter
-Wno-c++11-narrowing -Wno-covered-switch-default
-Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override
-Wno-undefined-var-template -Wno-nonportable-include-path
-Wno-address-of-packed-member -Wno-unused-lambda-capture
-Wno-user-defined-warnings -Wno-enum-compare-switch -O0 -fno-omit-frame-pointer
-g2 -gsplit-dwarf -fvisibility=hidden -Xclang -load -Xclang
../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang
-add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs
-Xclang check-auto-raw-pointer -Xclang -plugin-arg-find-bad-constructs -Xclang
check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare
-Wexit-time-destructors -Wno-header-guard -Wno-undefined-bool-conversion
-Wno-tautological-undefined-compare -std=gnu++14 -fno-rtti -nostdinc++
-isystem../../buildtools/third_party/libc++/trunk/include
-isystem../../buildtools/third_party/libc++abi/trunk/include
--sysroot=../../build/linux/debian_jessie_amd64-sysroot -fno-exceptions
-fvisibility-inlines-hidden -c ../../remoting/protocol/port_allocator.cc -o
obj/remoting/protocol/protocol/port_allocator.o
../../remoting/protocol/port_allocator.cc:48:7: error: no matching constructor
for initialization of 'cricket::BasicPortAllocator'
    : BasicPortAllocator(network_manager.get(), socket_factory.get()),
      ^                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/p2p/client/basicportallocator.h:35:12: note: candidate
constructor not viable: requires single argument 'network_manager', but 2
arguments were provided
  explicit BasicPortAllocator(rtc::NetworkManager* network_manager);
           ^
../../third_party/webrtc/p2p/client/basicportallocator.h:30:7: note: candidate
constructor (the implicit copy constructor) not viable: requires 1 argument, but
2 were provided
class BasicPortAllocator : public PortAllocator {
      ^
../../third_party/webrtc/p2p/client/basicportallocator.h:32:3: note: candidate
constructor not viable: requires 3 arguments, but 2 were provided
  BasicPortAllocator(rtc::NetworkManager* network_manager,
  ^
../../third_party/webrtc/p2p/client/basicportallocator.h:36:3: note: candidate
constructor not viable: requires 3 arguments, but 2 were provided
  BasicPortAllocator(rtc::NetworkManager* network_manager,
  ^
../../third_party/webrtc/p2p/client/basicportallocator.h:39:3: note: candidate
constructor not viable: requires 5 arguments, but 2 were provided
  BasicPortAllocator(rtc::NetworkManager* network_manager,
  ^
1 error generated..

Powered by Google App Engine
This is Rietveld 408576698