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

Issue 2975793002: Trace stats in RTCStatsCollector. (Closed)

Created:
3 years, 5 months ago by ehmaldonado_webrtc
Modified:
3 years, 5 months ago
Reviewers:
tommi, hbos
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Trace stats in RTCStatsCollector. BUG=chromium:653087 Review-Url: https://codereview.webrtc.org/2975793002 Cr-Commit-Position: refs/heads/master@{#19069} Committed: https://chromium.googlesource.com/external/webrtc/+/a26196bc65bbc627ad4520070ebbb896b95708c8

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address Henrik's comments. #

Total comments: 2

Patch Set 3 : Include dict name in the trace name. #

Total comments: 4

Patch Set 4 : Address comments. #

Total comments: 2

Patch Set 5 : Avoid using ostringstream. #

Total comments: 6

Patch Set 6 : Use rtc::sprintf. #

Patch Set 7 : Add comment explaining purpose and usage. #

Total comments: 3

Patch Set 8 : Trace everything under webrtc_stats. #

Total comments: 5

Patch Set 9 : Rebase. Use '.' instead of '+' as separator. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -0 lines) Patch
M webrtc/pc/rtcstatscollector.cc View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (10 generated)
ehmaldonado_webrtc
The idea is that the stats get traced when we call getStats() in javascript.
3 years, 5 months ago (2017-07-10 16:04:16 UTC) #4
tommi
the approach seems OK to me. https://codereview.webrtc.org/2975793002/diff/20001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/20001/webrtc/pc/rtcstatscollector.cc#newcode435 webrtc/pc/rtcstatscollector.cc:435: TRACE_EVENT2("webrtc_stats", "sent_frame_width", It ...
3 years, 5 months ago (2017-07-10 20:43:23 UTC) #5
hbos
What is the purpose of tracing and is there CPU overhead to doing so? https://codereview.webrtc.org/2975793002/diff/20001/webrtc/pc/rtcstatscollector.cc ...
3 years, 5 months ago (2017-07-11 13:37:13 UTC) #6
ehmaldonado_webrtc
PTAL Tommi: I'll add the comment before submitting :) Herik: Thanks for the review! Regarding ...
3 years, 5 months ago (2017-07-11 15:42:00 UTC) #7
hbos
https://codereview.webrtc.org/2975793002/diff/40001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/40001/webrtc/pc/rtcstatscollector.cc#newcode760 webrtc/pc/rtcstatscollector.cc:760: stats.type(), stats.id()); I think stats name might be wrong ...
3 years, 5 months ago (2017-07-12 11:26:52 UTC) #8
ehmaldonado_webrtc
PTAL :) https://codereview.webrtc.org/2975793002/diff/40001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/40001/webrtc/pc/rtcstatscollector.cc#newcode760 webrtc/pc/rtcstatscollector.cc:760: stats.type(), stats.id()); On 2017/07/12 11:26:51, hbos wrote: ...
3 years, 5 months ago (2017-07-12 12:45:51 UTC) #9
hbos
https://codereview.webrtc.org/2975793002/diff/60001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/60001/webrtc/pc/rtcstatscollector.cc#newcode759 webrtc/pc/rtcstatscollector.cc:759: trace_name << stats.type() << '.' << member->ValueToString(); If you ...
3 years, 5 months ago (2017-07-12 13:01:16 UTC) #10
ehmaldonado_webrtc
https://codereview.webrtc.org/2975793002/diff/60001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/60001/webrtc/pc/rtcstatscollector.cc#newcode759 webrtc/pc/rtcstatscollector.cc:759: trace_name << stats.type() << '.' << member->ValueToString(); On 2017/07/12 ...
3 years, 5 months ago (2017-07-12 13:23:30 UTC) #11
hbos
lgtm
3 years, 5 months ago (2017-07-12 13:49:43 UTC) #12
hbos
On 2017/07/12 13:49:43, hbos wrote: > lgtm Performance is measured here by the way https://cs.chromium.org/chromium/src/chrome/browser/media/webrtc/webrtc_stats_perf_browsertest.cc, ...
3 years, 5 months ago (2017-07-12 13:55:38 UTC) #13
tommi
https://codereview.webrtc.org/2975793002/diff/80001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/80001/webrtc/pc/rtcstatscollector.cc#newcode36 webrtc/pc/rtcstatscollector.cc:36: std::ostringstream oss; please don't use stringstream for anything else ...
3 years, 5 months ago (2017-07-12 13:56:49 UTC) #14
ehmaldonado_webrtc
https://codereview.webrtc.org/2975793002/diff/80001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/80001/webrtc/pc/rtcstatscollector.cc#newcode36 webrtc/pc/rtcstatscollector.cc:36: std::ostringstream oss; On 2017/07/12 13:56:49, tommi (wëbrtc) wrote: > ...
3 years, 5 months ago (2017-07-12 15:27:19 UTC) #15
tommi
https://codereview.webrtc.org/2975793002/diff/100001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/100001/webrtc/pc/rtcstatscollector.cc#newcode36 webrtc/pc/rtcstatscollector.cc:36: return std::string(stats_type) + '.' + member_name; '.' + member_name ...
3 years, 5 months ago (2017-07-12 15:34:20 UTC) #16
ehmaldonado_webrtc
https://codereview.webrtc.org/2975793002/diff/100001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/100001/webrtc/pc/rtcstatscollector.cc#newcode36 webrtc/pc/rtcstatscollector.cc:36: return std::string(stats_type) + '.' + member_name; On 2017/07/12 15:34:20, ...
3 years, 5 months ago (2017-07-12 15:40:32 UTC) #17
tommi
https://codereview.webrtc.org/2975793002/diff/100001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/100001/webrtc/pc/rtcstatscollector.cc#newcode36 webrtc/pc/rtcstatscollector.cc:36: return std::string(stats_type) + '.' + member_name; On 2017/07/12 15:40:32, ...
3 years, 5 months ago (2017-07-12 15:44:52 UTC) #18
ehmaldonado_webrtc
https://codereview.webrtc.org/2975793002/diff/100001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/100001/webrtc/pc/rtcstatscollector.cc#newcode36 webrtc/pc/rtcstatscollector.cc:36: return std::string(stats_type) + '.' + member_name; On 2017/07/12 15:44:52, ...
3 years, 5 months ago (2017-07-12 15:58:27 UTC) #19
hbos
https://codereview.webrtc.org/2975793002/diff/100001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/100001/webrtc/pc/rtcstatscollector.cc#newcode36 webrtc/pc/rtcstatscollector.cc:36: return std::string(stats_type) + '.' + member_name; On 2017/07/12 15:58:27, ...
3 years, 5 months ago (2017-07-12 16:20:15 UTC) #20
ehmaldonado_webrtc
PTAL Also, what do you think of the comment I added? Is it clear enough? ...
3 years, 5 months ago (2017-07-12 16:36:08 UTC) #22
tommi
https://codereview.webrtc.org/2975793002/diff/160001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/160001/webrtc/pc/rtcstatscollector.cc#newcode38 webrtc/pc/rtcstatscollector.cc:38: rtc::sprintfn(&buffer[0], sizeof(buffer), "%s.%s", stats_type, member_name); You might want to ...
3 years, 5 months ago (2017-07-12 16:53:03 UTC) #23
ehmaldonado_webrtc
https://codereview.webrtc.org/2975793002/diff/160001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/160001/webrtc/pc/rtcstatscollector.cc#newcode771 webrtc/pc/rtcstatscollector.cc:771: stats.type(), member->name()).c_str(), On 2017/07/12 16:53:03, tommi (wëbrtc) wrote: > ...
3 years, 5 months ago (2017-07-12 18:57:10 UTC) #24
tommi
On 2017/07/12 18:57:10, ehmaldonado_webrtc wrote: > https://codereview.webrtc.org/2975793002/diff/160001/webrtc/pc/rtcstatscollector.cc > File webrtc/pc/rtcstatscollector.cc (right): > > https://codereview.webrtc.org/2975793002/diff/160001/webrtc/pc/rtcstatscollector.cc#newcode771 > ...
3 years, 5 months ago (2017-07-12 19:22:15 UTC) #25
ehmaldonado_webrtc
On 2017/07/12 19:22:15, tommi (wëbrtc) wrote: > Yes that approach should work. Incidentally also avoids ...
3 years, 5 months ago (2017-07-12 19:36:54 UTC) #26
tommi
On 2017/07/12 19:36:54, ehmaldonado_webrtc wrote: > On 2017/07/12 19:22:15, tommi (wëbrtc) wrote: > > Yes ...
3 years, 5 months ago (2017-07-12 19:42:08 UTC) #27
ehmaldonado_webrtc
PTAL :)
3 years, 5 months ago (2017-07-13 08:32:46 UTC) #28
tommi
lgtm
3 years, 5 months ago (2017-07-13 08:56:28 UTC) #29
ehmaldonado_webrtc
https://codereview.webrtc.org/2975793002/diff/180001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/180001/webrtc/pc/rtcstatscollector.cc#newcode35 webrtc/pc/rtcstatscollector.cc:35: const int kStatTypeMemberNameAndIdMaxLen = 120; Henrik, do you think ...
3 years, 5 months ago (2017-07-13 09:40:43 UTC) #30
hbos
lgtm. Update the CL description (remove the [WIP]) before landing. https://codereview.webrtc.org/2975793002/diff/180001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/180001/webrtc/pc/rtcstatscollector.cc#newcode35 ...
3 years, 5 months ago (2017-07-18 08:55:08 UTC) #31
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/2975793002/220001
3 years, 5 months ago (2017-07-18 09:55:57 UTC) #36
hbos
https://codereview.webrtc.org/2975793002/diff/180001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/180001/webrtc/pc/rtcstatscollector.cc#newcode35 webrtc/pc/rtcstatscollector.cc:35: const int kStatTypeMemberNameAndIdMaxLen = 120; On 2017/07/18 08:55:08, hbos ...
3 years, 5 months ago (2017-07-18 10:09:48 UTC) #37
hbos
https://codereview.webrtc.org/2975793002/diff/180001/webrtc/pc/rtcstatscollector.cc File webrtc/pc/rtcstatscollector.cc (right): https://codereview.webrtc.org/2975793002/diff/180001/webrtc/pc/rtcstatscollector.cc#newcode35 webrtc/pc/rtcstatscollector.cc:35: const int kStatTypeMemberNameAndIdMaxLen = 120; On 2017/07/18 10:09:48, hbos ...
3 years, 5 months ago (2017-07-18 10:11:58 UTC) #38
hbos
The bots aren't failing. Maybe the tracing isn't enabled in the integrationtest?
3 years, 5 months ago (2017-07-18 10:28:48 UTC) #39
commit-bot: I haz the power
3 years, 5 months ago (2017-07-18 10:30:35 UTC) #42
Message was sent while issue was closed.
Committed patchset #9 (id:220001) as
https://chromium.googlesource.com/external/webrtc/+/a26196bc65bbc627ad4520070...

Powered by Google App Engine
This is Rietveld 408576698