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

Issue 1468173003: [Tracing Clock Sync] Add TracingAgent interface in Chrome (Closed)

Created:
5 years, 1 month ago by Zhen Wang
Modified:
5 years ago
CC:
chromium-reviews, hashimoto+watch_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org, jam, darin-cc_chromium.org, oshima+watch_chromium.org, tracing+reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Tracing Clock Sync] Add TracingAgent interface in Chrome This CL adds TracingAgent interface in Chrome and hooks up corresponding subclasses. Design doc: https://goo.gl/8Vy6qX BUG=542390 Committed: https://crrev.com/b0b2a7f0fd7f6ec4a43f735e643a1f2f90351dc8 Cr-Commit-Position: refs/heads/master@{#365284}

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : review fix #

Patch Set 4 : unify adding agent trace to trace data sink #

Patch Set 5 : unify agent tracing start/stop in TracingControllerImpl #

Patch Set 6 : fix compile failure for cros #

Total comments: 10

Patch Set 7 : review fix #

Total comments: 10

Patch Set 8 : review fix - primiano #

Patch Set 9 : review fix and more comments for clock sync #

Patch Set 10 : fix compile failure for cros #

Patch Set 11 : rebase #

Patch Set 12 : remove IssueClockSyncMarker #

Total comments: 4

Patch Set 13 : review fix #

Patch Set 14 : rebase #

Total comments: 38

Patch Set 15 : review fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -271 lines) Patch
M base/trace_event/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M base/trace_event/trace_event.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
A base/trace_event/tracing_agent.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +92 lines, -0 lines 0 comments Download
A base/trace_event/tracing_agent.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +24 lines, -0 lines 0 comments Download
M chromeos/dbus/debug_daemon_client.h View 3 chunks +8 lines, -15 lines 0 comments Download
M chromeos/dbus/debug_daemon_client.cc View 1 2 3 4 5 6 7 8 9 7 chunks +42 lines, -29 lines 0 comments Download
M chromeos/dbus/fake_debug_daemon_client.h View 1 2 3 4 5 6 1 chunk +7 lines, -4 lines 0 comments Download
M chromeos/dbus/fake_debug_daemon_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +27 lines, -6 lines 0 comments Download
M content/browser/tracing/etw_system_event_consumer_win.h View 1 2 3 4 5 6 7 4 chunks +13 lines, -10 lines 0 comments Download
M content/browser/tracing/etw_system_event_consumer_win.cc View 1 2 3 4 5 6 7 8 5 chunks +26 lines, -12 lines 0 comments Download
M content/browser/tracing/power_tracing_agent.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +18 lines, -10 lines 0 comments Download
M content/browser/tracing/power_tracing_agent.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +49 lines, -16 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +24 lines, -12 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +120 lines, -116 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl_data_sinks.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +35 lines, -36 lines 0 comments Download
M content/public/browser/tracing_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +11 lines, -5 lines 0 comments Download
M tools/gn/bootstrap/bootstrap.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 41 (11 generated)
Zhen Wang
ptal
5 years ago (2015-11-24 03:49:23 UTC) #4
dsinclair
5 years ago (2015-11-24 14:27:48 UTC) #6
oystein (OOO til 10th of July)
https://codereview.chromium.org/1468173003/diff/20001/base/trace_event/tracing_agent.h File base/trace_event/tracing_agent.h (right): https://codereview.chromium.org/1468173003/diff/20001/base/trace_event/tracing_agent.h#newcode16 base/trace_event/tracing_agent.h:16: Can you include some class-level comments here, clarifying what ...
5 years ago (2015-11-24 22:52:10 UTC) #7
Zhen Wang
How's the overall structure? https://codereview.chromium.org/1468173003/diff/20001/base/trace_event/tracing_agent.h File base/trace_event/tracing_agent.h (right): https://codereview.chromium.org/1468173003/diff/20001/base/trace_event/tracing_agent.h#newcode16 base/trace_event/tracing_agent.h:16: On 2015/11/24 22:52:10, Oystein wrote: ...
5 years ago (2015-11-25 04:24:55 UTC) #8
shatch
On 2015/11/24 03:49:23, Zhen Wang wrote: > ptal High level comments: Really like the TracingAgents, ...
5 years ago (2015-11-25 16:49:31 UTC) #9
Zhen Wang
> Really like the TracingAgents, maybe we can even push that a bit further and ...
5 years ago (2015-11-26 01:20:07 UTC) #10
shatch
I think I'm mostly fine with this, just a few comments. https://codereview.chromium.org/1468173003/diff/100001/content/browser/tracing/tracing_controller_impl.cc File content/browser/tracing/tracing_controller_impl.cc (right): ...
5 years ago (2015-11-27 19:29:19 UTC) #11
Zhen Wang
Is it fine to declare and define static constants in TracingAgent? The intention is to ...
5 years ago (2015-12-01 00:14:32 UTC) #12
Primiano Tucci (use gerrit)
Some drive-by nits https://codereview.chromium.org/1468173003/diff/120001/base/trace_event/tracing_agent.h File base/trace_event/tracing_agent.h (right): https://codereview.chromium.org/1468173003/diff/120001/base/trace_event/tracing_agent.h#newcode11 base/trace_event/tracing_agent.h:11: #include "base/trace_event/trace_config.h" this header is not ...
5 years ago (2015-12-01 11:42:43 UTC) #14
Zhen Wang
Thanks for the review, Primiano! :) https://codereview.chromium.org/1468173003/diff/120001/base/trace_event/tracing_agent.h File base/trace_event/tracing_agent.h (right): https://codereview.chromium.org/1468173003/diff/120001/base/trace_event/tracing_agent.h#newcode11 base/trace_event/tracing_agent.h:11: #include "base/trace_event/trace_config.h" On ...
5 years ago (2015-12-01 18:02:53 UTC) #15
oystein (OOO til 10th of July)
On 2015/12/01 00:14:32, Zhen Wang wrote: > Is it fine to declare and define static ...
5 years ago (2015-12-01 19:31:10 UTC) #16
shatch
On 2015/12/01 19:31:10, Oystein wrote: > On 2015/12/01 00:14:32, Zhen Wang wrote: > > Is ...
5 years ago (2015-12-01 19:47:34 UTC) #17
Zhen Wang
Now removed the static constants. ptal.
5 years ago (2015-12-02 07:45:44 UTC) #18
shatch
lgtm from me, wait to see if Oystein or Primiano have more comments
5 years ago (2015-12-02 14:41:22 UTC) #19
oystein (OOO til 10th of July)
lgtm, thank you!
5 years ago (2015-12-02 18:42:31 UTC) #20
Zhen Wang
+stevenjb for //chromeos/dbus/ +sievers for //content/public +brettw for //tools/gn/bootstrap/bootstrap.py
5 years ago (2015-12-02 19:10:54 UTC) #21
Zhen Wang
Hi Simon and Oystein, can you take a look at the CL again? Now IssueClockSyncMarker ...
5 years ago (2015-12-09 00:16:39 UTC) #23
Zhen Wang
Chatted with Oystein offline and he's ok with removing IssueClockSyncMarker. Now sending to other owners. ...
5 years ago (2015-12-10 18:30:46 UTC) #25
no sievers
https://codereview.chromium.org/1468173003/diff/220001/content/public/browser/tracing_controller.h File content/public/browser/tracing_controller.h (right): https://codereview.chromium.org/1468173003/diff/220001/content/public/browser/tracing_controller.h#newcode47 content/public/browser/tracing_controller.h:47: GetAdditionalTracingAgentTrace() const; can you document what the two strings ...
5 years ago (2015-12-10 19:35:20 UTC) #26
stevenjb
https://codereview.chromium.org/1468173003/diff/220001/chromeos/dbus/debug_daemon_client.cc File chromeos/dbus/debug_daemon_client.cc (right): https://codereview.chromium.org/1468173003/diff/220001/chromeos/dbus/debug_daemon_client.cc#newcode224 chromeos/dbus/debug_daemon_client.cc:224: DCHECK(stop_agent_tracing_task_runner_); Since stop_agent_tracing_task_runner_ is required, shouldn't it be passed ...
5 years ago (2015-12-10 20:46:40 UTC) #27
Zhen Wang
https://codereview.chromium.org/1468173003/diff/220001/chromeos/dbus/debug_daemon_client.cc File chromeos/dbus/debug_daemon_client.cc (right): https://codereview.chromium.org/1468173003/diff/220001/chromeos/dbus/debug_daemon_client.cc#newcode224 chromeos/dbus/debug_daemon_client.cc:224: DCHECK(stop_agent_tracing_task_runner_); On 2015/12/10 20:46:40, stevenjb wrote: > Since stop_agent_tracing_task_runner_ ...
5 years ago (2015-12-10 21:09:27 UTC) #28
no sievers
On 2015/12/10 21:09:27, Zhen Wang wrote: > https://codereview.chromium.org/1468173003/diff/220001/chromeos/dbus/debug_daemon_client.cc > File chromeos/dbus/debug_daemon_client.cc (right): > > https://codereview.chromium.org/1468173003/diff/220001/chromeos/dbus/debug_daemon_client.cc#newcode224 ...
5 years ago (2015-12-11 18:13:52 UTC) #29
Zhen Wang
ping stevenjb and brettw :)
5 years ago (2015-12-14 17:21:33 UTC) #30
stevenjb
https://codereview.chromium.org/1468173003/diff/260001/base/trace_event/tracing_agent.h File base/trace_event/tracing_agent.h (right): https://codereview.chromium.org/1468173003/diff/260001/base/trace_event/tracing_agent.h#newcode24 base/trace_event/tracing_agent.h:24: // TracingController. s/the entity/an entity/ s/And all//All/ s/are and ...
5 years ago (2015-12-14 18:22:40 UTC) #31
Zhen Wang
https://codereview.chromium.org/1468173003/diff/260001/base/trace_event/tracing_agent.h File base/trace_event/tracing_agent.h (right): https://codereview.chromium.org/1468173003/diff/260001/base/trace_event/tracing_agent.h#newcode24 base/trace_event/tracing_agent.h:24: // TracingController. On 2015/12/14 18:22:40, stevenjb wrote: > s/the ...
5 years ago (2015-12-14 21:03:57 UTC) #32
stevenjb
lgtm
5 years ago (2015-12-15 17:06:19 UTC) #33
brettw
LGTM for gn/bootstrap
5 years ago (2015-12-15 17:51:50 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1468173003/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1468173003/280001
5 years ago (2015-12-15 17:54:02 UTC) #37
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years ago (2015-12-15 18:07:35 UTC) #39
commit-bot: I haz the power
5 years ago (2015-12-15 18:09:18 UTC) #41
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/b0b2a7f0fd7f6ec4a43f735e643a1f2f90351dc8
Cr-Commit-Position: refs/heads/master@{#365284}

Powered by Google App Engine
This is Rietveld 408576698