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

Issue 1457383002: Implement standalone event tracing in AppRTCDemo. (Closed)

Created:
5 years, 1 month ago by pbos-webrtc
Modified:
5 years ago
Reviewers:
tommi
CC:
Andrew MacDonald, mflodman, niklas.enbom, peah-webrtc, qiang.lu, stefan-webrtc, tterriberry_mozilla.com, webrtc-reviews_webrtc.org, yujie_mao (webrtc)
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Implement standalone event tracing in AppRTCDemo. Logs tracing events (TRACE_EVENT0 and friends) to storage in a format compatible with chrome://tracing which can be used for performance evaluation, finding lock contention and other sweet things). Tracing is still basic and doesn't contain thread metadata or logging of tracing arguments. BUG=webrtc:5158 R=tommi@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/6f28cf0b951a9d41246f022f48a6cd035fad151d

Patch Set 1 #

Patch Set 2 : add tracing shutdown #

Patch Set 3 : fix test_main.cc #

Patch Set 4 : fix race + test compile #

Patch Set 5 : revert test_main.cc, it shouldn't be on for all tests either way #

Total comments: 20

Patch Set 6 : prefix checking + cl format #

Patch Set 7 : as class #

Patch Set 8 : things I said I'd done #

Patch Set 9 : rebase onto PlatformThread #

Patch Set 10 : fix some bugs after testing on device woo #

Total comments: 11

Patch Set 11 : feedback + move into rtc::tracing #

Patch Set 12 : rebase #

Total comments: 30

Patch Set 13 : rebase #

Patch Set 14 : say nit again #

Patch Set 15 : update tracer check expectation #

Patch Set 16 : reinterpret cast windows #

Patch Set 17 : readd jitter_buffer trace, rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -10 lines) Patch
M talk/app/webrtc/java/jni/peerconnection_jni.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +28 lines, -1 line 0 comments Download
M talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M talk/session/media/channel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +4 lines, -1 line 0 comments Download
M webrtc/base/atomicops.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +19 lines, -0 lines 0 comments Download
M webrtc/base/event_tracer.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -0 lines 0 comments Download
M webrtc/base/event_tracer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +210 lines, -5 lines 0 comments Download
M webrtc/call/call.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/examples/androidapp/res/values/strings.xml View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/examples/androidapp/res/xml/preferences.xml View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/examples/androidapp/src/org/appspot/apprtc/ConnectActivity.java View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -0 lines 0 comments Download
M webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +9 lines, -1 line 0 comments Download
M webrtc/examples/androidapp/src/org/appspot/apprtc/SettingsActivity.java View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -0 lines 0 comments Download
M webrtc/examples/androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 64 (18 generated)
pbos-webrtc
Tommi can you start taking a look? This is in a working state, but I ...
5 years, 1 month ago (2015-11-19 18:34:14 UTC) #1
pbos-webrtc
add tracing shutdown
5 years, 1 month ago (2015-11-19 19:10:32 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457383002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457383002/20001
5 years, 1 month ago (2015-11-19 19:12:10 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_rel/builds/9162) mac_x64_gn_dbg on ...
5 years, 1 month ago (2015-11-19 19:13:57 UTC) #7
pbos-webrtc
fix test_main.cc
5 years, 1 month ago (2015-11-19 19:15:40 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457383002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457383002/40001
5 years, 1 month ago (2015-11-19 19:16:13 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_gn_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_gn_rel/builds/6879)
5 years, 1 month ago (2015-11-19 19:19:12 UTC) #12
pbos-webrtc
fix race + test compile
5 years, 1 month ago (2015-11-19 19:23:22 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457383002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457383002/60001
5 years, 1 month ago (2015-11-19 19:23:41 UTC) #15
pbos-webrtc
revert test_main.cc, it shouldn't be on for all tests either way
5 years, 1 month ago (2015-11-19 19:25:24 UTC) #16
pbos-webrtc
I'll stop slamming CQ now and make sure this runs locally, but PTAL as soon ...
5 years, 1 month ago (2015-11-19 19:25:54 UTC) #17
pbos-webrtc
On 2015/11/19 19:25:54, pbos-webrtc wrote: > I'll stop slamming CQ now and make sure this ...
5 years, 1 month ago (2015-11-19 19:40:45 UTC) #18
tommi
On 2015/11/19 19:40:45, pbos-webrtc wrote: > On 2015/11/19 19:25:54, pbos-webrtc wrote: > > I'll stop ...
5 years, 1 month ago (2015-11-20 08:48:23 UTC) #19
pbos-webrtc
prefix checking + cl format
5 years, 1 month ago (2015-11-20 10:47:15 UTC) #20
tommi
https://codereview.webrtc.org/1457383002/diff/80001/talk/app/webrtc/java/jni/peerconnection_jni.cc File talk/app/webrtc/java/jni/peerconnection_jni.cc (right): https://codereview.webrtc.org/1457383002/diff/80001/talk/app/webrtc/java/jni/peerconnection_jni.cc#newcode1065 talk/app/webrtc/java/jni/peerconnection_jni.cc:1065: if (j_event_tracing_filename == NULL) nit: use |if (!ptr)| or ...
5 years, 1 month ago (2015-11-20 13:49:54 UTC) #21
pbos-webrtc
as class
5 years, 1 month ago (2015-11-20 14:56:04 UTC) #22
pbos-webrtc
PTAL, I'll need to remove the rtc::Thread dependency and instead use ThreadWrapper, but I can't ...
5 years, 1 month ago (2015-11-20 15:11:06 UTC) #23
pbos-webrtc
things I said I'd done
5 years, 1 month ago (2015-11-23 10:24:31 UTC) #24
pbos-webrtc
rebase onto PlatformThread
5 years ago (2015-11-24 15:37:33 UTC) #25
pbos-webrtc
fix some bugs after testing on device woo
5 years ago (2015-11-24 15:53:44 UTC) #26
pbos-webrtc
Please take another look on your favorite show. :)
5 years ago (2015-11-24 15:54:04 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457383002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457383002/180001
5 years ago (2015-11-24 15:57:22 UTC) #29
tommi
https://codereview.webrtc.org/1457383002/diff/180001/webrtc/base/event_tracer.cc File webrtc/base/event_tracer.cc (right): https://codereview.webrtc.org/1457383002/diff/180001/webrtc/base/event_tracer.cc#newcode94 webrtc/base/event_tracer.cc:94: TraceEvent{name, category_enabled, phase, timestamp, 1, thread_id}); Are we using ...
5 years ago (2015-11-24 16:27:09 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years ago (2015-11-24 17:57:34 UTC) #32
pbos-webrtc
feedback + move into rtc::tracing
5 years ago (2015-11-26 12:21:00 UTC) #33
pbos-webrtc
PTAL https://codereview.webrtc.org/1457383002/diff/180001/webrtc/base/event_tracer.cc File webrtc/base/event_tracer.cc (right): https://codereview.webrtc.org/1457383002/diff/180001/webrtc/base/event_tracer.cc#newcode94 webrtc/base/event_tracer.cc:94: TraceEvent{name, category_enabled, phase, timestamp, 1, thread_id}); On 2015/11/24 ...
5 years ago (2015-11-26 12:21:07 UTC) #34
pbos-webrtc
rebase
5 years ago (2015-11-26 16:52:37 UTC) #35
tommi
https://codereview.webrtc.org/1457383002/diff/220001/webrtc/base/event_tracer.cc File webrtc/base/event_tracer.cc (right): https://codereview.webrtc.org/1457383002/diff/220001/webrtc/base/event_tracer.cc#newcode12 webrtc/base/event_tracer.cc:12: #include <inttypes.h> Hm.. have you tried this on the ...
5 years ago (2015-11-27 22:07:26 UTC) #36
pbos-webrtc
rebase
5 years ago (2015-12-03 01:02:44 UTC) #37
pbos-webrtc
say nit again
5 years ago (2015-12-03 15:16:20 UTC) #38
pbos-webrtc
update tracer check expectation
5 years ago (2015-12-03 15:22:36 UTC) #39
pbos-webrtc
PTAL! Be extra careful w/r/t atomics. I believe this is "a pointer to a volatile ...
5 years ago (2015-12-03 15:23:05 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457383002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457383002/280001
5 years ago (2015-12-03 15:24:00 UTC) #44
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_arm64_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_arm64_dbg/builds/6037)
5 years ago (2015-12-03 15:26:46 UTC) #46
pbos-webrtc
reinterpret cast windows
5 years ago (2015-12-03 15:28:40 UTC) #47
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457383002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457383002/300001
5 years ago (2015-12-03 15:28:53 UTC) #49
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years ago (2015-12-03 17:29:18 UTC) #51
tommi
lgtm, ship it!
5 years ago (2015-12-07 20:08:55 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457383002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457383002/300001
5 years ago (2015-12-07 20:09:21 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/2253)
5 years ago (2015-12-07 20:24:05 UTC) #56
pbos-webrtc
readd jitter_buffer trace
5 years ago (2015-12-07 22:10:09 UTC) #57
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/6f28cf0b951a9d41246f022f48a6cd035fad151d Cr-Commit-Position: refs/heads/master@{#10921}
5 years ago (2015-12-07 22:17:30 UTC) #60
pbos-webrtc
Committed patchset #17 (id:320001) manually as 6f28cf0b951a9d41246f022f48a6cd035fad151d (presubmit successful).
5 years ago (2015-12-07 22:17:31 UTC) #61
Nico
clang/win complains: [2348/30810] CXX obj/third_party/webrtc/base/rtc_base_approved/event_tracer.obj FAILED: ninja -t msvc -e environment.x64 -- ../../third_party/llvm-build/Release+Asserts/bin/clang-cl.exe /nologo /showI ...
5 years ago (2015-12-10 21:20:54 UTC) #62
Nico
(possible fix: explicitly cast e.tid to int)
5 years ago (2015-12-10 21:21:54 UTC) #63
pbos-webrtc
5 years ago (2015-12-11 13:57:27 UTC) #64
Message was sent while issue was closed.
On 2015/12/10 21:21:54, Nico wrote:
> (possible fix: explicitly cast e.tid to int)

Sorry about that, different fix up here:
https://codereview.webrtc.org/1522483002/

IIUC that should work for you as well, right?

Powered by Google App Engine
This is Rietveld 408576698