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

Issue 1996613003: ⛽ Pre-warm the tab list file. (Closed)

Created:
4 years, 7 months ago by Peter Wen
Modified:
4 years, 7 months ago
Reviewers:
gone, Steven Holte
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pre-warm the tab list file. - Store a SharedPreference boolean to prevent repeatedly checking whether the same user needs to be migrated from the old tab state file storage. - Switch migration task to use the thread pool executor. - Add a pre-fetch task to start reading the main tab list metadata file into a byte stream upon construction. - Add UMA stats to track how long it takes for loadState to wait for the completion of the pre-fetch task. - Remove old UMA stat. BUG=612574 Committed: https://crrev.com/bda78ff1475ff7e24fa57ed2e25924ee49af0d7b Cr-Commit-Position: refs/heads/master@{#396343}

Patch Set 1 #

Patch Set 2 : ) #

Patch Set 3 : Reorder to make reviews easier. #

Patch Set 4 : Switch migration task to threadpool. #

Total comments: 8

Patch Set 5 : Fix per review. #

Total comments: 2

Patch Set 6 : Marked as obsolete. #

Messages

Total messages: 22 (12 generated)
Peter Wen
4 years, 7 months ago (2016-05-19 19:21:28 UTC) #6
gone
lgtm https://codereview.chromium.org/1996613003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java (right): https://codereview.chromium.org/1996613003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java#newcode198 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java:198: startPreFetchTask(); startPrefetchTask https://codereview.chromium.org/1996613003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java#newcode348 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java:348: long time2 = SystemClock.elapsedRealtime(); ...
4 years, 7 months ago (2016-05-20 00:05:59 UTC) #8
Peter Wen
Thanks for the review, Dan! +holte@ for histogram OWNERS. https://codereview.chromium.org/1996613003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java (right): https://codereview.chromium.org/1996613003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java#newcode198 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java:198: ...
4 years, 7 months ago (2016-05-24 12:22:29 UTC) #10
Steven Holte
https://codereview.chromium.org/1996613003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/1996613003/diff/80001/tools/metrics/histograms/histograms.xml#oldcode90770 tools/metrics/histograms/histograms.xml:90770: - <suffix name="CleanupAllEncryptedTime"/> It's preferred to mark the suffix ...
4 years, 7 months ago (2016-05-24 17:35:24 UTC) #11
Peter Wen
https://codereview.chromium.org/1996613003/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/1996613003/diff/80001/tools/metrics/histograms/histograms.xml#oldcode90770 tools/metrics/histograms/histograms.xml:90770: - <suffix name="CleanupAllEncryptedTime"/> On 2016/05/24 17:35:24, Steven Holte wrote: ...
4 years, 7 months ago (2016-05-24 19:19:34 UTC) #12
Peter Wen
Friendly ping for histogram OWNERS. ❄
4 years, 7 months ago (2016-05-26 15:51:24 UTC) #16
Steven Holte
lgtm, sorry for delay
4 years, 7 months ago (2016-05-26 19:48:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996613003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1996613003/100001
4 years, 7 months ago (2016-05-26 21:08:41 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-27 01:18:59 UTC) #20
commit-bot: I haz the power
4 years, 7 months ago (2016-05-27 01:21:15 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/bda78ff1475ff7e24fa57ed2e25924ee49af0d7b
Cr-Commit-Position: refs/heads/master@{#396343}

Powered by Google App Engine
This is Rietveld 408576698