RESOLVED FIXED 173045
Add WebRTC stats logging
https://bugs.webkit.org/show_bug.cgi?id=173045
Summary Add WebRTC stats logging
youenn fablet
Reported 2017-06-06 21:57:03 PDT
To help debugging
Attachments
Patch (7.84 KB, patch)
2017-06-06 22:25 PDT, youenn fablet
no flags
Patch (7.84 KB, patch)
2017-06-07 08:32 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2017-06-06 22:25:55 PDT
Build Bot
Comment 2 2017-06-06 22:28:16 PDT
Attachment 312162 [details] did not pass style-queue: ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/api/stats/rtcstats.h:78: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 1 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
youenn fablet
Comment 3 2017-06-07 08:32:39 PDT
Build Bot
Comment 4 2017-06-07 08:34:38 PDT
Attachment 312185 [details] did not pass style-queue: ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/api/stats/rtcstats.h:78: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 1 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Eric Carlson
Comment 5 2017-06-07 08:36:16 PDT
Comment on attachment 312185 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=312185&action=review > Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:1005 > + if (!m_statsTimestamp) > + m_statsTimestamp = report->timestamp_us(); > + else if (m_statsLogTimer.repeatInterval() == 1_s && (report->timestamp_us() - m_statsTimestamp) > 30000000) { > + callOnMainThread([protectedThis = makeRef(*this)] { > + protectedThis->m_statsLogTimer.augmentRepeatInterval(4_s); > + }); > + } Is there any reason to do this when RELEASE_LOG_DISABLED is defined?
youenn fablet
Comment 6 2017-06-07 08:52:00 PDT
(In reply to Eric Carlson from comment #5) > Comment on attachment 312185 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=312185&action=review > > > Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:1005 > > + if (!m_statsTimestamp) > > + m_statsTimestamp = report->timestamp_us(); > > + else if (m_statsLogTimer.repeatInterval() == 1_s && (report->timestamp_us() - m_statsTimestamp) > 30000000) { > > + callOnMainThread([protectedThis = makeRef(*this)] { > > + protectedThis->m_statsLogTimer.augmentRepeatInterval(4_s); > > + }); > > + } > > Is there any reason to do this when RELEASE_LOG_DISABLED is defined? m_statsTimestamp is never used otherwise and the build system does not like that. This code will never be executed if RELEASE_LOG_DISABLED is defined anyway.
WebKit Commit Bot
Comment 7 2017-06-07 09:55:13 PDT
Comment on attachment 312185 [details] Patch Clearing flags on attachment: 312185 Committed r217888: <http://trac.webkit.org/changeset/217888>
WebKit Commit Bot
Comment 8 2017-06-07 09:55:14 PDT
All reviewed patches have been landed. Closing bug.
Jon Lee
Comment 9 2017-06-07 11:13:36 PDT
Eric Carlson
Comment 10 2017-06-08 09:39:58 PDT
Comment on attachment 312185 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=312185&action=review >>> Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:1005 >>> + } >> >> Is there any reason to do this when RELEASE_LOG_DISABLED is defined? > > m_statsTimestamp is never used otherwise and the build system does not like that. > This code will never be executed if RELEASE_LOG_DISABLED is defined anyway. The m_statsTimestamp declaration could be guarded with RELEASE_LOG_DISABLED as well.
Note You need to log in before you can comment on or make changes to this bug.