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

Issue 2004673002: Initialize remoting.ClientSession.PerfStats with zeros (Closed)

Created:
4 years, 7 months ago by Yuwei
Modified:
4 years, 7 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

* Initialize remoting.ClientSession.PerfStats with zeros so that caller doesn't need to check the undefined case. * Add check to StatsAccumulator.Add so that initial zeros will not dilute the result. BUG=613317 Committed: https://crrev.com/bab89783f15ddb0fedb0a8f5ff03e3e696b2f2af Cr-Commit-Position: refs/heads/master@{#395408}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Reviewer's Feedback & Mark Fields Non-nullable #

Total comments: 3

Patch Set 4 : Reviewer's Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -27 lines) Patch
M remoting/webapp/base/js/client_session.js View 3 1 chunk +12 lines, -12 lines 0 comments Download
M remoting/webapp/base/js/connection_stats.js View 1 2 3 2 chunks +2 lines, -7 lines 0 comments Download
M remoting/webapp/base/js/stats_accumulator.js View 1 2 3 chunks +24 lines, -8 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
Yuwei
Looks like I misunderstood the logging process. Raw stats will be accumulated in SessionAccumulator and ...
4 years, 7 months ago (2016-05-23 17:39:50 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2004673002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2004673002/20001
4 years, 7 months ago (2016-05-23 17:41:00 UTC) #5
Jamie
Please take a look at the "== undefined" checks in connection_stats.js, since I don't think ...
4 years, 7 months ago (2016-05-23 17:55:41 UTC) #6
Yuwei
Removed the unused undefined check and fixed style nit. Looks like in JSCompiler you can ...
4 years, 7 months ago (2016-05-23 18:14:00 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2004673002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2004673002/40001
4 years, 7 months ago (2016-05-23 18:14:52 UTC) #9
Yuwei
https://codereview.chromium.org/2004673002/diff/40001/remoting/webapp/base/js/stats_accumulator.js File remoting/webapp/base/js/stats_accumulator.js (right): https://codereview.chromium.org/2004673002/diff/40001/remoting/webapp/base/js/stats_accumulator.js#newcode40 remoting/webapp/base/js/stats_accumulator.js:40: * @param {Object<number>} stats Oops... That should be Object<!number> ...
4 years, 7 months ago (2016-05-23 18:16:40 UTC) #10
Jamie
LGTM once the !s are removed. https://codereview.chromium.org/2004673002/diff/40001/remoting/webapp/base/js/client_session.js File remoting/webapp/base/js/client_session.js (right): https://codereview.chromium.org/2004673002/diff/40001/remoting/webapp/base/js/client_session.js#newcode205 remoting/webapp/base/js/client_session.js:205: /** @type {!number} ...
4 years, 7 months ago (2016-05-23 18:18:27 UTC) #11
Yuwei
https://codereview.chromium.org/2004673002/diff/40001/remoting/webapp/base/js/client_session.js File remoting/webapp/base/js/client_session.js (right): https://codereview.chromium.org/2004673002/diff/40001/remoting/webapp/base/js/client_session.js#newcode205 remoting/webapp/base/js/client_session.js:205: /** @type {!number} */ On 2016/05/23 18:18:27, Jamie wrote: ...
4 years, 7 months ago (2016-05-23 18:25:23 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/2004673002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2004673002/60001
4 years, 7 months ago (2016-05-23 18:25:30 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-23 19:27:50 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2004673002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2004673002/60001
4 years, 7 months ago (2016-05-23 20:41:01 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-23 20:49:58 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 20:51:44 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bab89783f15ddb0fedb0a8f5ff03e3e696b2f2af
Cr-Commit-Position: refs/heads/master@{#395408}

Powered by Google App Engine
This is Rietveld 408576698