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

Issue 1420193003: [tracing] Add IndexDB database memory usages to tracing (Closed)

Created:
5 years, 2 months ago by ssid
Modified:
4 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, dgrogan, jsbell+idb_chromium.org, jam, cmumford
Base URL:
https://chromium.googlesource.com/chromium/src.git@leveldb
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] Add IndexDB database memory usages to tracing Webpages using IndexDB could use a lot of memory in leveldb databases (in order of Gbs crbug.com/533648). This Cl adds the memory usage of the databases to tracing. BUG=547066 Committed: https://crrev.com/8af3b11896d42eb8f032116b5f5fb237ab12305b Cr-Commit-Position: refs/heads/master@{#378919}

Patch Set 1 #

Patch Set 2 : Adding task runner. #

Patch Set 3 : fixes. #

Patch Set 4 : Nit. #

Total comments: 2

Patch Set 5 : fix file name conflicts. #

Patch Set 6 : build fix. #

Patch Set 7 : build fix. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -2 lines) Patch
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_database.h View 1 2 5 chunks +9 lines, -2 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_database.cc View 1 2 3 4 5 6 5 chunks +32 lines, -0 lines 2 comments Download

Depends on Patchset:

Messages

Total messages: 23 (7 generated)
ssid
This does not take care of threading yet. Once the issue in https://codereview.chromium.org/1310513004/ is fixed, ...
5 years, 1 month ago (2015-10-26 17:55:56 UTC) #2
ssid
The indexed_db is always accessed in BrowserMainLoop::indexed_db_thread. So, I think it safe to have this ...
5 years, 1 month ago (2015-11-11 18:33:38 UTC) #3
jsbell
On 2015/11/11 18:33:38, ssid wrote: > The indexed_db is always accessed in BrowserMainLoop::indexed_db_thread. So, I ...
5 years, 1 month ago (2015-11-11 18:38:33 UTC) #4
ssid
On 2015/11/11 18:38:33, jsbell wrote: > On 2015/11/11 18:33:38, ssid wrote: > > The indexed_db ...
5 years, 1 month ago (2015-11-11 18:54:05 UTC) #5
jsbell
On 2015/11/11 18:54:05, ssid wrote: > On 2015/11/11 18:38:33, jsbell wrote: > > On 2015/11/11 ...
5 years, 1 month ago (2015-11-11 19:29:46 UTC) #6
ssid
Now that crrev.com/1618703004 looks stable, this can be reviewed. PTAL, thanks.
4 years, 9 months ago (2016-02-29 19:53:22 UTC) #7
jsbell
https://codereview.chromium.org/1420193003/diff/60001/content/browser/indexed_db/leveldb/leveldb_database.cc File content/browser/indexed_db/leveldb/leveldb_database.cc (right): https://codereview.chromium.org/1420193003/diff/60001/content/browser/indexed_db/leveldb/leveldb_database.cc#newcode461 content/browser/indexed_db/leveldb/leveldb_database.cc:461: pmd->CreateAllocatorDump("leveldb/index_db/" + file_name_for_tracing); Sanity check: the filename here is ...
4 years, 9 months ago (2016-02-29 20:18:54 UTC) #9
ssid
https://codereview.chromium.org/1420193003/diff/60001/content/browser/indexed_db/leveldb/leveldb_database.cc File content/browser/indexed_db/leveldb/leveldb_database.cc (right): https://codereview.chromium.org/1420193003/diff/60001/content/browser/indexed_db/leveldb/leveldb_database.cc#newcode461 content/browser/indexed_db/leveldb/leveldb_database.cc:461: pmd->CreateAllocatorDump("leveldb/index_db/" + file_name_for_tracing); On 2016/02/29 20:18:54, jsbell wrote: > ...
4 years, 9 months ago (2016-02-29 23:23:30 UTC) #10
jsbell
lgtm
4 years, 9 months ago (2016-02-29 23:39:08 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420193003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420193003/120001
4 years, 9 months ago (2016-03-01 23:03:38 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-02 00:48:37 UTC) #15
Primiano Tucci (use gerrit)
LGTM. Just one question: did you check in debug (or release that dcheck always on) ...
4 years, 9 months ago (2016-03-02 06:21:55 UTC) #16
ssid
Yes checked with debug and the databases are destroyed in the same thread. It's not ...
4 years, 9 months ago (2016-03-02 23:17:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420193003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420193003/120001
4 years, 9 months ago (2016-03-02 23:20:27 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-03-03 02:14:34 UTC) #21
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 02:15:56 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/8af3b11896d42eb8f032116b5f5fb237ab12305b
Cr-Commit-Position: refs/heads/master@{#378919}

Powered by Google App Engine
This is Rietveld 408576698