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

Issue 1018713002: Record the time to update top sites through db thread to understand if this is low and how slow it … (Closed)

Created:
5 years, 9 months ago by yao
Modified:
5 years, 9 months ago
Reviewers:
rkaplow, jwd, sky
CC:
chromium-reviews, 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

Record the time to update top sites through db thread to understand if this is low and how slow it is in the wild. BUG=223430 Committed: https://crrev.com/e2d3d2eb9e39868db7df9a68ac50aed6e053ca5c Cr-Commit-Position: refs/heads/master@{#321642}

Patch Set 1 : #

Total comments: 9

Patch Set 2 : Address comments. #

Patch Set 3 : Address comments & pretty print histogram xml. #

Total comments: 2

Patch Set 4 : Uses timeticks instead of time. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -5 lines) Patch
M components/history/core/browser/top_sites_backend.cc View 1 2 3 3 chunks +12 lines, -0 lines 1 comment Download
M tools/metrics/histograms/histograms.xml View 3 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
yao
PTAL, thanks!
5 years, 9 months ago (2015-03-17 19:41:25 UTC) #3
rkaplow
https://codereview.chromium.org/1018713002/diff/20001/components/history/core/browser/top_sites_backend.cc File components/history/core/browser/top_sites_backend.cc (right): https://codereview.chromium.org/1018713002/diff/20001/components/history/core/browser/top_sites_backend.cc#newcode107 components/history/core/browser/top_sites_backend.cc:107: TRACE_EVENT0("startup", "history::TopSitesBackend::UpdateTopSitesOnDBThread"); trace event should even be before the ...
5 years, 9 months ago (2015-03-17 22:41:13 UTC) #4
yao
https://codereview.chromium.org/1018713002/diff/20001/components/history/core/browser/top_sites_backend.cc File components/history/core/browser/top_sites_backend.cc (right): https://codereview.chromium.org/1018713002/diff/20001/components/history/core/browser/top_sites_backend.cc#newcode107 components/history/core/browser/top_sites_backend.cc:107: TRACE_EVENT0("startup", "history::TopSitesBackend::UpdateTopSitesOnDBThread"); On 2015/03/17 22:41:12, rkaplow wrote: > trace ...
5 years, 9 months ago (2015-03-18 19:38:06 UTC) #5
rkaplow
https://codereview.chromium.org/1018713002/diff/20001/components/history/core/browser/top_sites_backend.cc File components/history/core/browser/top_sites_backend.cc (right): https://codereview.chromium.org/1018713002/diff/20001/components/history/core/browser/top_sites_backend.cc#newcode107 components/history/core/browser/top_sites_backend.cc:107: TRACE_EVENT0("startup", "history::TopSitesBackend::UpdateTopSitesOnDBThread"); On 2015/03/18 19:38:05, yao wrote: > On ...
5 years, 9 months ago (2015-03-19 20:30:04 UTC) #6
yao
Changed the tracing place as you suggested. Also pretty printed histograms.xml, which touched a couple ...
5 years, 9 months ago (2015-03-20 01:16:39 UTC) #7
rkaplow
lgtm
5 years, 9 months ago (2015-03-20 01:19:18 UTC) #8
yao
@sky, could you do an owner's review for top_sites_backend.cc? @jwd, could you do an owner's ...
5 years, 9 months ago (2015-03-20 01:24:36 UTC) #10
sky
https://codereview.chromium.org/1018713002/diff/60001/components/history/core/browser/top_sites_backend.cc File components/history/core/browser/top_sites_backend.cc (right): https://codereview.chromium.org/1018713002/diff/60001/components/history/core/browser/top_sites_backend.cc#newcode111 components/history/core/browser/top_sites_backend.cc:111: base::Time begin_time = base::Time::Now(); Shouldn't we use timeticks for ...
5 years, 9 months ago (2015-03-20 14:58:23 UTC) #11
yao
https://codereview.chromium.org/1018713002/diff/60001/components/history/core/browser/top_sites_backend.cc File components/history/core/browser/top_sites_backend.cc (right): https://codereview.chromium.org/1018713002/diff/60001/components/history/core/browser/top_sites_backend.cc#newcode111 components/history/core/browser/top_sites_backend.cc:111: base::Time begin_time = base::Time::Now(); On 2015/03/20 14:58:22, sky wrote: ...
5 years, 9 months ago (2015-03-20 18:06:02 UTC) #12
sky
LGTM
5 years, 9 months ago (2015-03-20 20:00:20 UTC) #13
jwd
lgtm
5 years, 9 months ago (2015-03-20 20:16:00 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1018713002/70001
5 years, 9 months ago (2015-03-20 20:21:15 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:70001)
5 years, 9 months ago (2015-03-20 21:56:13 UTC) #18
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/e2d3d2eb9e39868db7df9a68ac50aed6e053ca5c Cr-Commit-Position: refs/heads/master@{#321642}
5 years, 9 months ago (2015-03-20 21:56:49 UTC) #19
sky
https://codereview.chromium.org/1018713002/diff/70001/components/history/core/browser/top_sites_backend.cc File components/history/core/browser/top_sites_backend.cc (right): https://codereview.chromium.org/1018713002/diff/70001/components/history/core/browser/top_sites_backend.cc#newcode112 components/history/core/browser/top_sites_backend.cc:112: base::TimeTicks begin_time = base::TimeTicks::Now(); I was looking at TimeTicks ...
5 years, 9 months ago (2015-03-27 15:51:04 UTC) #20
yao
On 2015/03/27 15:51:04, sky wrote: > https://codereview.chromium.org/1018713002/diff/70001/components/history/core/browser/top_sites_backend.cc > File components/history/core/browser/top_sites_backend.cc (right): > > https://codereview.chromium.org/1018713002/diff/70001/components/history/core/browser/top_sites_backend.cc#newcode112 > ...
5 years, 9 months ago (2015-03-27 18:46:45 UTC) #21
sky
5 years, 9 months ago (2015-03-27 21:17:07 UTC) #22
Message was sent while issue was closed.
I feel like ThreadNow is more of what we want, but given this isn't
supported on windows it doesn't seem worth it now.

  -Scott

On Fri, Mar 27, 2015 at 11:46 AM,  <yiyaoliu@chromium.org> wrote:
> On 2015/03/27 15:51:04, sky wrote:
>
>
https://codereview.chromium.org/1018713002/diff/70001/components/history/core...
>>
>> File components/history/core/browser/top_sites_backend.cc (right):
>
>
>
>
https://codereview.chromium.org/1018713002/diff/70001/components/history/core...
>>
>> components/history/core/browser/top_sites_backend.cc:112: base::TimeTicks
>> begin_time = base::TimeTicks::Now();
>> I was looking at TimeTicks and wonder if you should be using ThreadNow()?
>
> Seems
>>
>> as though that would give you a better approximation of actual time on
>> this
>> thread.
>
>
> I'm not too familiar with this. Since ThreadNow is not supported all the
> time,
> if we are switching to ThreadNow, we'll have to separate them into 2
> different
> histograms? Combing ThreadNow() and Now() would be confusing I feel.
>
> (This is my current Cl https://codereview.chromium.org/1005873011/, to
> change it
> to the way you suggested in the email.)
>
> https://codereview.chromium.org/1018713002/

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698