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

Issue 953223002: Include time elapsed since start of a remoting session in each log entry. (Closed)

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

Description

Include time elapsed since start of a remoting session in each log entry. BUG=461610 Executed run_webapp_unittest.py with these changes and all tests passed. Committed: https://crrev.com/fcf59efc9dd11d746b0b8c8d26f34d41e94c5892 Cr-Commit-Position: refs/heads/master@{#318738}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename constant to include time unit, and remove superfluous constant. #

Total comments: 6

Patch Set 3 : Upon each session state change, log the time taken to get to that state. #

Patch Set 4 : Remove logging of elapsed time for session strategy progress. #

Total comments: 6

Patch Set 5 : Calculate elapsed time for the signal strategy progress event as well. #

Total comments: 6

Patch Set 6 : Record elapsed time every time we log something. #

Total comments: 2

Patch Set 7 : Set session start time in constructor. #

Total comments: 2

Patch Set 8 : Remove now unnecessary session duration logging. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -64 lines) Patch
M remoting/webapp/crd/js/fallback_signal_strategy.js View 1 2 3 4 5 6 7 4 chunks +3 lines, -12 lines 0 comments Download
M remoting/webapp/crd/js/log_to_server.js View 1 2 3 4 5 6 7 6 chunks +7 lines, -33 lines 0 comments Download
M remoting/webapp/crd/js/server_log_entry.js View 1 2 3 4 5 6 7 6 chunks +15 lines, -19 lines 0 comments Download

Messages

Total messages: 39 (18 generated)
anandc
Jamie, PTAL. Sriram and Gary, FYI. I'd like to get some feedback first on whether ...
5 years, 10 months ago (2015-02-25 19:02:58 UTC) #4
Sriram
https://codereview.chromium.org/953223002/diff/40001/remoting/webapp/crd/js/server_log_entry.js File remoting/webapp/crd/js/server_log_entry.js (right): https://codereview.chromium.org/953223002/diff/40001/remoting/webapp/crd/js/server_log_entry.js#newcode53 remoting/webapp/crd/js/server_log_entry.js:53: remoting.ServerLogEntry.VALUE_EVENT_NAME_TOTAL_TIME_FOR_INITIAL_CONNECT_ = This is little confusing as why there ...
5 years, 10 months ago (2015-02-25 19:50:44 UTC) #6
anandc
https://codereview.chromium.org/953223002/diff/40001/remoting/webapp/crd/js/server_log_entry.js File remoting/webapp/crd/js/server_log_entry.js (right): https://codereview.chromium.org/953223002/diff/40001/remoting/webapp/crd/js/server_log_entry.js#newcode53 remoting/webapp/crd/js/server_log_entry.js:53: remoting.ServerLogEntry.VALUE_EVENT_NAME_TOTAL_TIME_FOR_INITIAL_CONNECT_ = On 2015/02/25 19:50:44, Sriram wrote: > This ...
5 years, 10 months ago (2015-02-25 20:27:55 UTC) #7
Jamie
https://codereview.chromium.org/953223002/diff/60001/remoting/webapp/crd/js/desktop_viewport.js File remoting/webapp/crd/js/desktop_viewport.js (right): https://codereview.chromium.org/953223002/diff/60001/remoting/webapp/crd/js/desktop_viewport.js#newcode345 remoting/webapp/crd/js/desktop_viewport.js:345: remoting.clientSession.logToServer.logTotalTimeForInitialConnection(); I would prefer that we don't introduce a ...
5 years, 10 months ago (2015-02-25 21:12:35 UTC) #8
anandc
Thanks Jamie. PTAL. https://codereview.chromium.org/953223002/diff/60001/remoting/webapp/crd/js/desktop_viewport.js File remoting/webapp/crd/js/desktop_viewport.js (right): https://codereview.chromium.org/953223002/diff/60001/remoting/webapp/crd/js/desktop_viewport.js#newcode345 remoting/webapp/crd/js/desktop_viewport.js:345: remoting.clientSession.logToServer.logTotalTimeForInitialConnection(); On 2015/02/25 21:12:35, Jamie wrote: ...
5 years, 9 months ago (2015-02-26 20:21:49 UTC) #12
Jamie
https://codereview.chromium.org/953223002/diff/150001/remoting/webapp/crd/js/log_to_server.js File remoting/webapp/crd/js/log_to_server.js (right): https://codereview.chromium.org/953223002/diff/150001/remoting/webapp/crd/js/log_to_server.js#newcode77 remoting/webapp/crd/js/log_to_server.js:77: entry.addTimeToReachStateMs(timeToReachThisState); This should either be added at a lower ...
5 years, 9 months ago (2015-02-26 20:32:07 UTC) #13
anandc
Thanks Jamie. PTAL. https://codereview.chromium.org/953223002/diff/150001/remoting/webapp/crd/js/log_to_server.js File remoting/webapp/crd/js/log_to_server.js (right): https://codereview.chromium.org/953223002/diff/150001/remoting/webapp/crd/js/log_to_server.js#newcode77 remoting/webapp/crd/js/log_to_server.js:77: entry.addTimeToReachStateMs(timeToReachThisState); On 2015/02/26 20:32:06, Jamie wrote: ...
5 years, 9 months ago (2015-02-26 22:47:11 UTC) #15
Jamie
https://codereview.chromium.org/953223002/diff/170002/remoting/webapp/crd/js/fallback_signal_strategy.js File remoting/webapp/crd/js/fallback_signal_strategy.js (right): https://codereview.chromium.org/953223002/diff/170002/remoting/webapp/crd/js/fallback_signal_strategy.js#newcode394 remoting/webapp/crd/js/fallback_signal_strategy.js:394: 'elapsed': new Date().getTime() - this.startTime_ Not that log_to_server is ...
5 years, 9 months ago (2015-02-27 02:24:46 UTC) #16
anandc
Thanks Jamie. PTAL. https://codereview.chromium.org/953223002/diff/170002/remoting/webapp/crd/js/fallback_signal_strategy.js File remoting/webapp/crd/js/fallback_signal_strategy.js (right): https://codereview.chromium.org/953223002/diff/170002/remoting/webapp/crd/js/fallback_signal_strategy.js#newcode394 remoting/webapp/crd/js/fallback_signal_strategy.js:394: 'elapsed': new Date().getTime() - this.startTime_ On ...
5 years, 9 months ago (2015-02-27 21:49:30 UTC) #20
Jamie
https://codereview.chromium.org/953223002/diff/250001/remoting/webapp/crd/js/log_to_server.js File remoting/webapp/crd/js/log_to_server.js (right): https://codereview.chromium.org/953223002/diff/250001/remoting/webapp/crd/js/log_to_server.js#newcode28 remoting/webapp/crd/js/log_to_server.js:28: this.sessionStartTime_ = 0; You need to initialize this to ...
5 years, 9 months ago (2015-02-28 00:35:37 UTC) #21
anandc
Thanks Jamie. PTAL. https://codereview.chromium.org/953223002/diff/250001/remoting/webapp/crd/js/log_to_server.js File remoting/webapp/crd/js/log_to_server.js (right): https://codereview.chromium.org/953223002/diff/250001/remoting/webapp/crd/js/log_to_server.js#newcode28 remoting/webapp/crd/js/log_to_server.js:28: this.sessionStartTime_ = 0; On 2015/02/28 00:35:37, ...
5 years, 9 months ago (2015-02-28 01:20:28 UTC) #22
Jamie
LGTM as long as the timestamps of signal strategy progress events isn't significantly affected by ...
5 years, 9 months ago (2015-02-28 01:52:34 UTC) #23
anandc
On 2015/02/28 01:52:34, Jamie wrote: > LGTM as long as the timestamps of signal strategy ...
5 years, 9 months ago (2015-02-28 02:10:06 UTC) #25
Jamie
LGTM! Thanks for the cleanup, and don't forget the server-side changes :)
5 years, 9 months ago (2015-02-28 02:25:36 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/953223002/310001
5 years, 9 months ago (2015-02-28 21:57:33 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/906)
5 years, 9 months ago (2015-02-28 22:02:07 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/953223002/310001
5 years, 9 months ago (2015-03-01 04:57:48 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/942)
5 years, 9 months ago (2015-03-01 05:02:02 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/953223002/310001
5 years, 9 months ago (2015-03-02 18:48:31 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:310001)
5 years, 9 months ago (2015-03-02 19:51:24 UTC) #38
commit-bot: I haz the power
5 years, 9 months ago (2015-03-02 19:52:05 UTC) #39
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/fcf59efc9dd11d746b0b8c8d26f34d41e94c5892
Cr-Commit-Position: refs/heads/master@{#318738}

Powered by Google App Engine
This is Rietveld 408576698