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

Issue 14976003: Histogram versions and extended error codes for SQLite databases. (Closed)

Created:
7 years, 7 months ago by Scott Hess - ex-Googler
Modified:
7 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, jar (doing other things), browser-components-watch_chromium.org, jam, MAD, joi+watch-content_chromium.org, darin-cc_chromium.org, Ilya Sherman
Visibility:
Public.

Description

Histogram versions and extended error codes for SQLite databases. Track database versions across the fleet for purposes of making decisions about whether old migration code can be removed. As part of this, refactor histogram code to key off a per-database tag rather than histogram name, and to log in a form which can be fanned out via the field trial logic in histograms.xml [FYI michaeln from webkit/OWNERS, erikwright from {chrome,content}/net/OWNERS, sky for chrome/browser/history/OWNERS] BUG=none TBR=michaeln@chromium.org, erikwright@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200216

Patch Set 1 #

Patch Set 2 : excess include. #

Total comments: 9

Patch Set 3 : Convert to using sparse histograms for version and error codes. #

Patch Set 4 : Um, yes, EENGINEERFAILURE #

Total comments: 4

Patch Set 5 : Jim says it can just use the same histogram name... #

Total comments: 2

Patch Set 6 : Convert to using field trial syntax. #

Patch Set 7 : Oops - need old histograms for continuity. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -50 lines) Patch
M chrome/browser/history/history_database.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/text_database.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/thumbnail_database.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/top_sites_database.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/sqlite_server_bound_cert_store.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/webdata/common/web_database.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/net/sqlite_persistent_cookie_store.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M sql/connection.h View 1 2 3 4 5 2 chunks +11 lines, -7 lines 0 comments Download
M sql/connection.cc View 1 2 3 4 5 2 chunks +21 lines, -28 lines 0 comments Download
M sql/meta_table.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 6 chunks +68 lines, -5 lines 0 comments Download
M webkit/appcache/appcache_database.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webkit/database/database_tracker.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webkit/quota/quota_database.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
Scott Hess - ex-Googler
Jim, I figure I should toss this past you before seeking OWNERS stamps. I considered ...
7 years, 7 months ago (2013-05-07 23:19:53 UTC) #1
jar (doing other things)
https://codereview.chromium.org/14976003/diff/3001/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/14976003/diff/3001/sql/connection.cc#newcode711 sql/connection.cc:711: void Connection::AddLinearHistogram(const std::string& suffix, It is also tempting to ...
7 years, 7 months ago (2013-05-07 23:46:41 UTC) #2
Scott Hess - ex-Googler
WRT using sparse histograms ... maybe? Probably? On the client side, I would expect each ...
7 years, 7 months ago (2013-05-08 19:56:18 UTC) #3
Scott Hess - ex-Googler
OK, so I tried out using a sparse histogram for .Version and .ExtendedError, and it ...
7 years, 7 months ago (2013-05-09 22:41:10 UTC) #4
jar (doing other things)
We chatted about this... and if you're worried, you can go with the whole current ...
7 years, 7 months ago (2013-05-13 22:05:59 UTC) #5
Scott Hess - ex-Googler
https://codereview.chromium.org/14976003/diff/14005/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/14976003/diff/14005/sql/connection.cc#newcode737 sql/connection.cc:737: // sparse histograms. Remove the .Error histograms once the ...
7 years, 7 months ago (2013-05-13 22:43:08 UTC) #6
jar (doing other things)
LGTM... but please consider the nit below. https://codereview.chromium.org/14976003/diff/24001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/14976003/diff/24001/tools/metrics/histograms/histograms.xml#newcode6926 tools/metrics/histograms/histograms.xml:6926: <histogram name="Sqlite.AppCache.Version"> ...
7 years, 7 months ago (2013-05-14 02:12:46 UTC) #7
Scott Hess - ex-Googler
https://codereview.chromium.org/14976003/diff/24001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/14976003/diff/24001/tools/metrics/histograms/histograms.xml#newcode6926 tools/metrics/histograms/histograms.xml:6926: <histogram name="Sqlite.AppCache.Version"> On 2013/05/14 02:12:46, jar wrote: > nit: ...
7 years, 7 months ago (2013-05-14 03:43:17 UTC) #8
Scott Hess - ex-Googler
OK. I made the change to have two histograms, Sqlite.Error and Sqlite.Version, plus a field ...
7 years, 7 months ago (2013-05-14 18:19:42 UTC) #9
Scott Hess - ex-Googler
On 2013/05/14 18:19:42, shess wrote: > OK. I made the change to have two histograms, ...
7 years, 7 months ago (2013-05-14 18:27:37 UTC) #10
jar (doing other things)
LGTM (... and yeah... I think you should TBR the tiny changes in the other ...
7 years, 7 months ago (2013-05-14 19:50:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/14976003/38001
7 years, 7 months ago (2013-05-14 19:59:57 UTC) #12
michaeln
webkit/ lgtm2
7 years, 7 months ago (2013-05-14 22:20:41 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=148570
7 years, 7 months ago (2013-05-15 00:15:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/14976003/38001
7 years, 7 months ago (2013-05-15 00:57:28 UTC) #15
commit-bot: I haz the power
7 years, 7 months ago (2013-05-15 09:10:41 UTC) #16
Message was sent while issue was closed.
Change committed as 200216

Powered by Google App Engine
This is Rietveld 408576698