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

Issue 1407033008: Makes the BattOrAgent asynchronous (Closed)

Created:
5 years, 1 month ago by charliea (OOO until 10-5)
Modified:
5 years, 1 month ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Makes the BattOrAgent asynchronous I confirmed with simonhatch@ that this made sense given the way that the Chromium TracingController works. The agent will be communicating over a serial connection, which probably shouldn't be done synchronously. BUG=542837 Committed: https://crrev.com/a36a5b07f1e6d68908f4f7c2f955c6ae434de7fa Cr-Commit-Position: refs/heads/master@{#357144}

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : Makes some commands best-effort #

Total comments: 11

Patch Set 4 : Code review #

Patch Set 5 : Code review #

Total comments: 4

Patch Set 6 : Code review #

Patch Set 7 : Added //base dependency to bin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -20 lines) Patch
M tools/battor_agent/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M tools/battor_agent/battor_agent.h View 1 2 3 2 chunks +12 lines, -7 lines 0 comments Download
M tools/battor_agent/battor_agent.cc View 1 2 3 4 5 1 chunk +16 lines, -8 lines 0 comments Download
M tools/battor_agent/battor_agent_bin.cc View 1 2 3 4 5 5 chunks +27 lines, -5 lines 0 comments Download

Messages

Total messages: 28 (13 generated)
charliea (OOO until 10-5)
5 years, 1 month ago (2015-10-29 17:11:12 UTC) #6
charliea (OOO until 10-5)
As discussed offline, I went ahead and removed the callback from StartTracing(), RecordClockSyncMarker(), and IssueClockSyncMarker() ...
5 years, 1 month ago (2015-10-29 18:21:09 UTC) #8
Zhen Wang
nednguyen, please take a look at the comment in battor_agent_bin.cc for the discussion of using ...
5 years, 1 month ago (2015-10-29 19:40:22 UTC) #10
nednguyen
https://codereview.chromium.org/1407033008/diff/120001/tools/battor_agent/battor_agent_bin.cc File tools/battor_agent/battor_agent_bin.cc (right): https://codereview.chromium.org/1407033008/diff/120001/tools/battor_agent/battor_agent_bin.cc#newcode23 tools/battor_agent/battor_agent_bin.cc:23: scoped_ptr<std::string> g_trace_output; On 2015/10/29 19:40:22, Zhen Wang wrote: > ...
5 years, 1 month ago (2015-10-29 19:57:32 UTC) #11
charliea (OOO until 10-5)
https://codereview.chromium.org/1407033008/diff/120001/tools/battor_agent/battor_agent.cc File tools/battor_agent/battor_agent.cc (right): https://codereview.chromium.org/1407033008/diff/120001/tools/battor_agent/battor_agent.cc#newcode29 tools/battor_agent/battor_agent.cc:29: callback.Run(scoped_ptr<std::string>(new std::string("battor trace output"))); On 2015/10/29 19:40:22, Zhen Wang ...
5 years, 1 month ago (2015-10-29 21:12:12 UTC) #12
Zhen Wang
lgtm with nits https://codereview.chromium.org/1407033008/diff/160001/tools/battor_agent/battor_agent.cc File tools/battor_agent/battor_agent.cc (right): https://codereview.chromium.org/1407033008/diff/160001/tools/battor_agent/battor_agent.cc#newcode15 tools/battor_agent/battor_agent.cc:15: // TODO: Open up a serial ...
5 years, 1 month ago (2015-10-30 16:46:45 UTC) #13
charliea (OOO until 10-5)
https://codereview.chromium.org/1407033008/diff/160001/tools/battor_agent/battor_agent.cc File tools/battor_agent/battor_agent.cc (right): https://codereview.chromium.org/1407033008/diff/160001/tools/battor_agent/battor_agent.cc#newcode15 tools/battor_agent/battor_agent.cc:15: // TODO: Open up a serial connection with the ...
5 years, 1 month ago (2015-10-30 17:37:43 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407033008/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407033008/180001
5 years, 1 month ago (2015-10-30 17:38:22 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/23696)
5 years, 1 month ago (2015-10-30 17:43:38 UTC) #19
nednguyen(REVIEW IN OTHER ACC)
Lgtm
5 years, 1 month ago (2015-10-30 17:52:13 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407033008/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407033008/200001
5 years, 1 month ago (2015-10-30 18:00:19 UTC) #24
charliea (OOO until 10-5)
Sorry about that Ned! I wasn't sure if you wanted me to wait for your ...
5 years, 1 month ago (2015-10-30 18:00:21 UTC) #25
nednguyen
On 2015/10/30 18:00:21, charliea wrote: > Sorry about that Ned! I wasn't sure if you ...
5 years, 1 month ago (2015-10-30 18:26:16 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:200001)
5 years, 1 month ago (2015-10-30 18:40:15 UTC) #27
commit-bot: I haz the power
5 years, 1 month ago (2015-10-30 18:41:16 UTC) #28
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a36a5b07f1e6d68908f4f7c2f955c6ae434de7fa
Cr-Commit-Position: refs/heads/master@{#357144}

Powered by Google App Engine
This is Rietveld 408576698