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

Issue 1567683002: Makes the BattOrConnection read messages instead of bytes (Closed)

Created:
4 years, 11 months ago by charliea (OOO until 10-5)
Modified:
4 years, 11 months ago
Reviewers:
nednguyen
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 BattOrConnection read messages instead of bytes This was quickly going to become a problem as we implemented StopTracing. When the BattOr finishes tracing and starts streaming back the samples that it recorded, it sends back frames with varying message lengths. With this change, we can say "give me the next message up to 50kB" rather than having to specify an exact number of bytes that we expect. It also gets rid of escape byte counting, which was awkward and error-prone anyway. BUG=542837 Committed: https://crrev.com/19bf12bc8a89b38e1bcdd2a767e722209903d738 Cr-Commit-Position: refs/heads/master@{#368091}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -247 lines) Patch
M tools/battor_agent/battor_agent.h View 1 chunk +3 lines, -3 lines 0 comments Download
M tools/battor_agent/battor_agent.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M tools/battor_agent/battor_agent_unittest.cc View 1 13 chunks +21 lines, -19 lines 0 comments Download
M tools/battor_agent/battor_connection.h View 1 2 chunks +7 lines, -9 lines 0 comments Download
M tools/battor_agent/battor_connection_impl.h View 1 2 chunks +18 lines, -14 lines 0 comments Download
M tools/battor_agent/battor_connection_impl.cc View 1 4 chunks +113 lines, -137 lines 0 comments Download
M tools/battor_agent/battor_connection_impl_unittest.cc View 1 7 chunks +146 lines, -59 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1567683002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1567683002/1
4 years, 11 months ago (2016-01-06 18:59:29 UTC) #3
charliea (OOO until 10-5)
4 years, 11 months ago (2016-01-06 19:03: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/1567683002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1567683002/40001
4 years, 11 months ago (2016-01-06 19:03:58 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-06 19:54:53 UTC) #11
nednguyen
lgtm with nits https://codereview.chromium.org/1567683002/diff/40001/tools/battor_agent/battor_agent.cc File tools/battor_agent/battor_agent.cc (right): https://codereview.chromium.org/1567683002/diff/40001/tools/battor_agent/battor_agent.cc#newcode185 tools/battor_agent/battor_agent.cc:185: connection_->ReadMessage(sizeof(BattOrControlMessageAck)); Can yo abstract this to ...
4 years, 11 months ago (2016-01-06 22:03:13 UTC) #12
charliea (OOO until 10-5)
https://codereview.chromium.org/1567683002/diff/40001/tools/battor_agent/battor_agent.cc File tools/battor_agent/battor_agent.cc (right): https://codereview.chromium.org/1567683002/diff/40001/tools/battor_agent/battor_agent.cc#newcode185 tools/battor_agent/battor_agent.cc:185: connection_->ReadMessage(sizeof(BattOrControlMessageAck)); On 2016/01/06 22:03:13, nednguyen wrote: > Can yo ...
4 years, 11 months ago (2016-01-07 16:00:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1567683002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1567683002/100001
4 years, 11 months ago (2016-01-07 16:04:18 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:100001)
4 years, 11 months ago (2016-01-07 16:40:23 UTC) #19
commit-bot: I haz the power
4 years, 11 months ago (2016-01-07 16:41:30 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/19bf12bc8a89b38e1bcdd2a767e722209903d738
Cr-Commit-Position: refs/heads/master@{#368091}

Powered by Google App Engine
This is Rietveld 408576698