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

Issue 8008021: Add new UMA stats to get a handle on Downloads UI Usage (Closed)

Created:
9 years, 3 months ago by benjhayden
Modified:
9 years, 2 months ago
CC:
chromium-reviews, dpranke+watch-content_chromium.org, Paweł Hajdan Jr., jam, joi+watch-content_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Add new UMA stats to get a handle on Downloads UI Usage Download.OpenTime: number of milliseconds between a download completing and when it is opened Download.FirstOpenTime: same, but is only counted the first time that a download is opened (even across restarts) Download.HistorySize: number of items in the history when a download begins. A user who downloads 5 times per minute, Clears All, then repeats will look exactly like a user who downloads 5 times per week then Clears All and repeats, which is a flat line that goes to 5 then stops. People like me who Clear All after every download will be a dirac delta in the 0 bucket, whereas people who never Clear All will be a flat line all the way out. This should look more like an exponential distribution, with bumps at db sizes when chrome updated. The expected value of this distribution will be the most interesting number. Download.ShelfSizeOnAutoClose: number of items displayed in the shelf when it autocloses Download.ShelfSizeOnUserClose: same as ShelfSizeOnAutoClose, but either when the user opens chrome://downloads or clicks the shelf's |x|. Download.ShelfInProgressSizeOnAutoClose: same as ShelfSizeOnAutoClose, but only counts in-progress items. Download.ShelfInProgressSizeOnUserClose: same as ShelfSizeOnUserClose, but only counts in-progress items. Download.ClearAllSize: number of items removed by 'Clear All' Download.OpensOutstanding: number of completed unopened items when an item is opened. FirstOpenTime required adding |end_time| and |opened| to the downloads table. ScheduleAndForget only goes up to 4 args, so I changed UpdateEntry to use DownloadPersistentStoreInfo. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105871

Patch Set 1 : uma #

Total comments: 4

Patch Set 2 : comments #

Total comments: 9

Patch Set 3 : fixed tests #

Total comments: 32

Patch Set 4 : comments #

Total comments: 8

Patch Set 5 : merge, comments #

Patch Set 6 : fix windows auto_closed_ #

Total comments: 10

Patch Set 7 : comments #

Patch Set 8 : merge #

Patch Set 9 : fix build #

Patch Set 10 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -68 lines) Patch
M chrome/browser/download/download_history.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/history/download_database.h View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/history/download_database.cc View 1 2 3 4 5 6 7 chunks +42 lines, -36 lines 0 comments Download
M chrome/browser/history/history.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/history.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_shelf_controller.mm View 1 2 3 4 5 6 2 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/download/download_shelf_gtk.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/download/download_shelf_view.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/download/download_shelf_view.cc View 1 2 3 4 5 6 7 4 chunks +11 lines, -0 lines 0 comments Download
M content/browser/download/download_item.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/download/download_item.cc View 1 2 3 4 5 6 7 6 chunks +9 lines, -2 lines 0 comments Download
M content/browser/download/download_manager.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/download/download_manager.cc View 1 2 3 4 5 6 7 4 chunks +15 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_delegate.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/download/download_persistent_store_info.h View 1 2 3 4 2 chunks +22 lines, -6 lines 0 comments Download
M content/browser/download/download_persistent_store_info.cc View 1 2 3 2 chunks +8 lines, -3 lines 0 comments Download
M content/browser/download/download_stats.h View 1 2 3 4 5 6 7 2 chunks +20 lines, -0 lines 0 comments Download
M content/browser/download/download_stats.cc View 1 2 3 4 5 6 7 8 1 chunk +53 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
benjhayden
Randy, Asanka, feel free to take a look at these UMA. I'm particularly proud of ...
9 years, 3 months ago (2011-09-23 21:22:58 UTC) #1
Randy Smith (Not in Mondays)
I do like HistorySize2. I have expectations as to what the result will look like, ...
9 years, 2 months ago (2011-09-26 18:27:25 UTC) #2
asanka
Looks great! Do we need to worry about noise in Download.FirstOpenTime due to database migrations? ...
9 years, 2 months ago (2011-09-26 21:54:41 UTC) #3
benjhayden
Hold the review, still working, just wanted to get these ideas down before they evaporate. ...
9 years, 2 months ago (2011-09-27 15:03:58 UTC) #4
benjhayden
Still working, hold review. On 2011/09/26 18:27:25, rdsmith wrote: > I do like HistorySize2. I ...
9 years, 2 months ago (2011-09-27 17:34:38 UTC) #5
benjhayden
PTAL http://codereview.chromium.org/8008021/diff/7026/chrome/browser/history/download_database.cc File chrome/browser/history/download_database.cc (right): http://codereview.chromium.org/8008021/diff/7026/chrome/browser/history/download_database.cc#newcode117 chrome/browser/history/download_database.cc:117: int version = schema_version_; On 2011/09/26 18:27:26, rdsmith ...
9 years, 2 months ago (2011-09-28 17:35:23 UTC) #6
Randy Smith (Not in Mondays)
On 2011/09/27 17:34:38, b s h wrote: > Still working, hold review. > > > ...
9 years, 2 months ago (2011-09-28 19:24:30 UTC) #7
Randy Smith (Not in Mondays)
http://codereview.chromium.org/8008021/diff/8026/chrome/browser/history/history_types.h File chrome/browser/history/history_types.h (right): http://codereview.chromium.org/8008021/diff/8026/chrome/browser/history/history_types.h#newcode745 chrome/browser/history/history_types.h:745: struct DownloadItemData { Is there a reason not to ...
9 years, 2 months ago (2011-09-28 19:41:55 UTC) #8
benjhayden
Working on OpensOutstanding. http://codereview.chromium.org/8008021/diff/8026/chrome/browser/history/history_types.h File chrome/browser/history/history_types.h (right): http://codereview.chromium.org/8008021/diff/8026/chrome/browser/history/history_types.h#newcode745 chrome/browser/history/history_types.h:745: struct DownloadItemData { On 2011/09/28 19:41:55, ...
9 years, 2 months ago (2011-09-28 20:29:39 UTC) #9
benjhayden
OpensOutstanding done. PTAL when you get a chance.
9 years, 2 months ago (2011-09-29 18:59:01 UTC) #10
Randy Smith (Not in Mondays)
Brett: Could you take a scan through download_database.cc? I'd like the eye of someone who ...
9 years, 2 months ago (2011-09-29 21:23:15 UTC) #11
Randy Smith (Not in Mondays)
Next round. Believe it or not, I like what you're doing here. That's why I'm ...
9 years, 2 months ago (2011-09-30 15:57:21 UTC) #12
brettw
http://codereview.chromium.org/8008021/diff/26001/chrome/browser/history/download_database.cc File chrome/browser/history/download_database.cc (right): http://codereview.chromium.org/8008021/diff/26001/chrome/browser/history/download_database.cc#newcode82 chrome/browser/history/download_database.cc:82: meta_table_.Init(&GetDB(), 0, 0); I'd rather use the versioning system ...
9 years, 2 months ago (2011-10-01 16:45:44 UTC) #13
benjhayden
PTAL http://codereview.chromium.org/8008021/diff/8026/chrome/browser/history/history_types.h File chrome/browser/history/history_types.h (right): http://codereview.chromium.org/8008021/diff/8026/chrome/browser/history/history_types.h#newcode745 chrome/browser/history/history_types.h:745: struct DownloadItemData { On 2011/09/30 15:57:21, rdsmith wrote: ...
9 years, 2 months ago (2011-10-03 20:54:38 UTC) #14
brettw
Okay, I guess it's better to leave the versioning stuff as-is. LGTM from me for ...
9 years, 2 months ago (2011-10-03 21:10:02 UTC) #15
Randy Smith (Not in Mondays)
Looking good. A couple of high level comments: + What is your definition of "pending" ...
9 years, 2 months ago (2011-10-04 18:34:31 UTC) #16
benjhayden
http://codereview.chromium.org/8008021/diff/42001/chrome/browser/history/download_database.h File chrome/browser/history/download_database.h (right): http://codereview.chromium.org/8008021/diff/42001/chrome/browser/history/download_database.h#newcode38 chrome/browser/history/download_database.h:38: // Does not update |url|, |start_time|, |total_bytes|, or |db_handle|. ...
9 years, 2 months ago (2011-10-06 21:25:16 UTC) #17
Randy Smith (Not in Mondays)
High level comment: Make sure (if you haven't already) to try running some downloads and ...
9 years, 2 months ago (2011-10-09 23:40:17 UTC) #18
benjhayden
On 2011/10/09 23:40:17, rdsmith wrote: > High level comment: Make sure (if you haven't already) ...
9 years, 2 months ago (2011-10-10 16:26:22 UTC) #19
benjhayden
PTAL http://codereview.chromium.org/8008021/diff/47022/chrome/browser/history/download_database.cc File chrome/browser/history/download_database.cc (right): http://codereview.chromium.org/8008021/diff/47022/chrome/browser/history/download_database.cc#newcode33 chrome/browser/history/download_database.cc:33: "opened INTEGER NOT NULL)"; // 1 if the ...
9 years, 2 months ago (2011-10-10 16:27:11 UTC) #20
Randy Smith (Not in Mondays)
Sorry, this fell off my radar screen because I had noted myself as LGTMing it. ...
9 years, 2 months ago (2011-10-14 17:21:00 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/8008021/77040
9 years, 2 months ago (2011-10-14 20:47:37 UTC) #22
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years, 2 months ago (2011-10-14 22:48:24 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/8008021/89001
9 years, 2 months ago (2011-10-17 17:37:39 UTC) #24
commit-bot: I haz the power
9 years, 2 months ago (2011-10-17 19:08:09 UTC) #25
Change committed as 105871

Powered by Google App Engine
This is Rietveld 408576698