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

Issue 1133123003: Added metrics to track the time between task switches done via the shelf. (Closed)

Created:
5 years, 7 months ago by bruthig
Modified:
5 years, 7 months ago
CC:
chromium-reviews, kalyank, sadrul, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added metrics to track the time between task switches done via the shelf. TEST=TaskSwitchTimeTrackerTest.HasLastActionTimeShouldBeFalseAfterConstruction TEST=TaskSwitchTimeTrackerTest.HasLastActionTimeShouldBeTrueAfterOnTaskSwitch TEST=TaskSwitchTimeTrackerTest.RecordAfterTwoTaskSwitches TEST=TaskSwitchMetricsRecorderTest.VerifyTaskSwitchesFromTheShelfAreRecorded BUG=469359, 471356 Committed: https://crrev.com/9444f5f41b7cdea355dac95e0de83573b4e31a3d Cr-Commit-Position: refs/heads/master@{#329884}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed tdanderson@'s comments from patch set 1. #

Total comments: 10

Patch Set 3 : Addressed oshima@'s comments from patch set 2. #

Total comments: 2

Patch Set 4 : Addressed oshima@'s nit from patch set 3. #

Total comments: 6

Patch Set 5 : Addressed asvitkine@ comments in patch set 4. #

Patch Set 6 : Added ASH_EXPORT to TaskSwitchTimeTracker. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+596 lines, -0 lines) Patch
M ash/ash.gyp View 3 chunks +8 lines, -0 lines 0 comments Download
A ash/metrics/task_switch_metrics_recorder.h View 1 1 chunk +65 lines, -0 lines 0 comments Download
A ash/metrics/task_switch_metrics_recorder.cc View 1 2 3 4 1 chunk +65 lines, -0 lines 0 comments Download
A ash/metrics/task_switch_metrics_recorder_unittest.cc View 1 chunk +80 lines, -0 lines 0 comments Download
A ash/metrics/task_switch_time_tracker.h View 1 2 3 4 5 1 chunk +77 lines, -0 lines 0 comments Download
A ash/metrics/task_switch_time_tracker.cc View 1 2 3 4 1 chunk +87 lines, -0 lines 0 comments Download
A ash/metrics/task_switch_time_tracker_unittest.cc View 1 chunk +107 lines, -0 lines 0 comments Download
M ash/metrics/user_metrics_recorder.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ash/metrics/user_metrics_recorder.cc View 1 chunk +4 lines, -0 lines 0 comments Download
A ash/test/task_switch_time_tracker_test_api.h View 1 chunk +53 lines, -0 lines 0 comments Download
A ash/test/task_switch_time_tracker_test_api.cc View 1 chunk +33 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
bruthig
asvitkine@/rkaplow@: Can you please review my usage of histograms. Specifically in: - ash/metrics/task_switch_time_tracker.cc - tools/metrics/histograms/histograms.xml ...
5 years, 7 months ago (2015-05-13 18:22:40 UTC) #2
tdanderson
LGTM with a few nits below. https://chromiumcodereview.appspot.com/1133123003/diff/1/ash/metrics/task_switch_metrics_recorder.h File ash/metrics/task_switch_metrics_recorder.h (right): https://chromiumcodereview.appspot.com/1133123003/diff/1/ash/metrics/task_switch_metrics_recorder.h#newcode39 ash/metrics/task_switch_metrics_recorder.h:39: void OnTaskSwitch(TaskSwitchSource task_switch_source); ...
5 years, 7 months ago (2015-05-13 19:27:18 UTC) #3
bruthig
I've addressed tdanderson@'s comments from patch set 1. asvitkine@/rkaplow@: Can you please review my usage ...
5 years, 7 months ago (2015-05-13 21:16:21 UTC) #4
tdanderson
new description LGTM
5 years, 7 months ago (2015-05-13 21:19:57 UTC) #5
oshima
https://codereview.chromium.org/1133123003/diff/20001/ash/metrics/task_switch_metrics_recorder.cc File ash/metrics/task_switch_metrics_recorder.cc (right): https://codereview.chromium.org/1133123003/diff/20001/ash/metrics/task_switch_metrics_recorder.cc#newcode21 ash/metrics/task_switch_metrics_recorder.cc:21: } NOTREACHED() https://codereview.chromium.org/1133123003/diff/20001/ash/metrics/task_switch_metrics_recorder.cc#newcode55 ash/metrics/task_switch_metrics_recorder.cc:55: CHECK(histogram_name); If you assume wrong ...
5 years, 7 months ago (2015-05-13 22:16:53 UTC) #6
bruthig
I've addressed oshima@'s comments from patch set 2. asvitkine@/rkaplow@: Can you please review my usage ...
5 years, 7 months ago (2015-05-13 23:41:10 UTC) #7
oshima
lgtm with a nit https://codereview.chromium.org/1133123003/diff/40001/ash/metrics/task_switch_metrics_recorder.cc File ash/metrics/task_switch_metrics_recorder.cc (right): https://codereview.chromium.org/1133123003/diff/40001/ash/metrics/task_switch_metrics_recorder.cc#newcode57 ash/metrics/task_switch_metrics_recorder.cc:57: CHECK(histogram_name); nit: DCHECK will be ...
5 years, 7 months ago (2015-05-13 23:46:50 UTC) #8
bruthig
I've addressed oshima@'s comments from patch set 3. asvitkine@/rkaplow@: Can you please review my usage ...
5 years, 7 months ago (2015-05-14 14:19:46 UTC) #9
Alexei Svitkine (slow)
https://codereview.chromium.org/1133123003/diff/60001/ash/metrics/task_switch_metrics_recorder.cc File ash/metrics/task_switch_metrics_recorder.cc (right): https://codereview.chromium.org/1133123003/diff/60001/ash/metrics/task_switch_metrics_recorder.cc#newcode13 ash/metrics/task_switch_metrics_recorder.cc:13: const char kShelf_histogram[] = "Ash.Shelf.TimeBetweenNavigateToTaskSwitches"; Nit: kShelfHistogram https://codereview.chromium.org/1133123003/diff/60001/ash/metrics/task_switch_metrics_recorder.cc#newcode60 ash/metrics/task_switch_metrics_recorder.cc:60: ...
5 years, 7 months ago (2015-05-14 14:51:54 UTC) #10
bruthig
I have addressed asvitkine@ comments in patch set 4. asvitkine@/rkaplow@: Can you please re-review my ...
5 years, 7 months ago (2015-05-14 15:35:21 UTC) #11
Alexei Svitkine (slow)
lgtm
5 years, 7 months ago (2015-05-14 15:53:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1133123003/80001
5 years, 7 months ago (2015-05-14 16:08:22 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/51762)
5 years, 7 months ago (2015-05-14 16:51:02 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1133123003/100001
5 years, 7 months ago (2015-05-14 17:31:40 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 7 months ago (2015-05-14 18:36:52 UTC) #21
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 18:37:47 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9444f5f41b7cdea355dac95e0de83573b4e31a3d
Cr-Commit-Position: refs/heads/master@{#329884}

Powered by Google App Engine
This is Rietveld 408576698