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

Issue 13328004: Telemetry tab_switching_test. (Closed)

Created:
7 years, 8 months ago by shatch
Modified:
7 years, 6 months ago
Reviewers:
nduca, sh, rcrabb1, dtu, danhn, Nat, tonyg
CC:
chromium-reviews, chrome-speed-team+watch_google.com, Danh Nguyen, jbauman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Ported tab_switching_test.cc to telemetry. BUG= NOTRY=true

Patch Set 1 #

Total comments: 1

Patch Set 2 : Removed var. #

Total comments: 12

Patch Set 3 : Changes from review. #

Total comments: 6

Patch Set 4 : Changes from review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -0 lines) Patch
A tools/perf/page_sets/tab_switching.json View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A tools/perf/perf_tools/tab_switching_benchmark.py View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
shatch
https://codereview.chromium.org/13328004/diff/1/tools/perf/perf_tools/tab_switching_benchmark.py File tools/perf/perf_tools/tab_switching_benchmark.py (right): https://codereview.chromium.org/13328004/diff/1/tools/perf/perf_tools/tab_switching_benchmark.py#newcode31 tools/perf/perf_tools/tab_switching_benchmark.py:31: # These pages seem to be broken Should these ...
7 years, 8 months ago (2013-03-29 19:17:22 UTC) #1
tonyg
Yay for another test moved into telemetry! A few questions/comments inline. https://codereview.chromium.org/13328004/diff/2001/tools/perf/perf_tools/tab_switching_benchmark.py File tools/perf/perf_tools/tab_switching_benchmark.py (right): ...
7 years, 8 months ago (2013-03-29 20:37:35 UTC) #2
shatch
On 2013/03/29 20:37:35, tonyg wrote: > Yay for another test moved into telemetry! A few ...
7 years, 8 months ago (2013-03-29 21:35:39 UTC) #3
shatch
New snapshot uploaded. https://codereview.chromium.org/13328004/diff/2001/tools/perf/perf_tools/tab_switching_benchmark.py File tools/perf/perf_tools/tab_switching_benchmark.py (right): https://codereview.chromium.org/13328004/diff/2001/tools/perf/perf_tools/tab_switching_benchmark.py#newcode8 tools/perf/perf_tools/tab_switching_benchmark.py:8: import time On 2013/03/29 20:37:35, tonyg ...
7 years, 8 months ago (2013-03-29 21:40:00 UTC) #4
tonyg
A few last nits. Everything else looks good to me, but I'd be curious to ...
7 years, 8 months ago (2013-03-29 22:14:17 UTC) #5
shatch
On 2013/03/29 22:14:17, tonyg wrote: > A few last nits. Everything else looks good to ...
7 years, 8 months ago (2013-03-29 22:44:17 UTC) #6
tonyg
https://codereview.chromium.org/13328004/diff/9001/tools/perf/page_sets/tab_switching.json#newcode5 > > tools/perf/page_sets/tab_switching.json:5: "url": "file:///blank_page.html", > > This is gone now. Should it be ...
7 years, 8 months ago (2013-03-29 22:53:28 UTC) #7
shatch
New snapshot uploaded. https://codereview.chromium.org/13328004/diff/9001/tools/perf/perf_tools/tab_switching_benchmark.py File tools/perf/perf_tools/tab_switching_benchmark.py (right): https://codereview.chromium.org/13328004/diff/9001/tools/perf/perf_tools/tab_switching_benchmark.py#newcode11 tools/perf/perf_tools/tab_switching_benchmark.py:11: {'name': 'MPArch.RWH_TabSwitchPaintDuration', 'units': ''},] On 2013/03/29 ...
7 years, 8 months ago (2013-03-29 22:59:12 UTC) #8
nduca
Remind me what the tab switching test used to do, and what we plan it ...
7 years, 8 months ago (2013-03-30 22:54:42 UTC) #9
nduca
(https://codereview.chromium.org/11668013/ being the related review)
7 years, 8 months ago (2013-04-01 00:13:43 UTC) #10
shatch
On 2013/04/01 00:13:43, nduca wrote: > (https://codereview.chromium.org/11668013/ being the related review) The test loads a ...
7 years, 8 months ago (2013-04-01 21:46:07 UTC) #11
dtu
On 2013/04/01 21:46:07, shatch wrote: > On 2013/04/01 00:13:43, nduca wrote: > > (https://codereview.chromium.org/11668013/ being ...
7 years, 8 months ago (2013-04-03 03:40:43 UTC) #12
danhn
The test in https://codereview.chromium.**org/11668013/<https://codereview.chromium.org/11668013/> is part of the stress tests which Vangelis would like to ...
7 years, 8 months ago (2013-04-03 15:34:14 UTC) #13
rcrabb1
Could we just add measurements to the stress test described by Danh? It is already ...
7 years, 8 months ago (2013-04-03 16:29:40 UTC) #14
sh
Yeah, they're fairly similar, don't see why we can't just merge them. One note about ...
7 years, 8 months ago (2013-04-03 16:59:58 UTC) #15
Nat
7 years, 8 months ago (2013-04-03 18:14:26 UTC) #16
I can't help wonder if theres a session concept that is shared between
these two tests.

E.g. telemetry, create a page with a full session. Then there are tests
that use that session in different ways, e.g. switching

I also share Simon's concerns about activate being async. We should get
some bugs filed about the tabswitchpaintduration metric being busted [cc
jbauman on it]. We should also think careflly through whether we're doing
enough "stressing" in the tab switching test.


On Wed, Apr 3, 2013 at 9:59 AM, Simon Hatch <simonhatch@google.com> wrote:

> Yeah, they're fairly similar, don't see why we can't just merge them.
>
> One note about the other test, the call to Tab::Activate is asynchonous (I
> believe?), so quickly iterating the list and calling Activate() may not
> give each one time to become visible. I don't know if that's relevant to
> the gpu stress test, but I don't think the
> MPArch.RWH_TabSwitchPaintDuration metric will be valid unless you wait.
>
>
> On Wed, Apr 3, 2013 at 9:29 AM, Rebecca Crabb <rcrabb@google.com> wrote:
>
>> Could we just add measurements to the stress test described by Danh?  It
>> is already cycling through tabs in a random order and closing tabs in a
>> random order.  We could just measure tab switch and tab close time in
>> addition to memory.  Thoughts?
>>
>>
>> On Wed, Apr 3, 2013 at 8:34 AM, Danh Nguyen <danhn@google.com> wrote:
>>
>>> The test in
https://codereview.chromium.**org/11668013/<https://codereview.chromium.org/1...
is
>>> part of the stress tests which Vangelis would like to have:
>>>
>>> 1. Open up multiple tabs within a window, cycle through them in a random
>>> order, close them in a random order, make sure that everything works and
>>> memory is released.
>>> 2. Open up multiple window with multiple tabs, do stuff similar to #1
>>> 3. Stress test window resizing by opening up multiple tabs in a single
>>> window and continuously resize the window for a while.  Check for hangs,
>>> memory leaks.
>>>
>>> While this test seems to check on tab switching time, so I guess they're
>>> different.
>>>
>>> Thanks,
>>> Danh
>>>
>>>
>>> On Tue, Apr 2, 2013 at 8:40 PM, <dtu@chromium.org> wrote:
>>>
>>>> On 2013/04/01 21:46:07, shatch wrote:
>>>>
>>>>> On 2013/04/01 00:13:43, nduca wrote:
>>>>> >
(https://codereview.chromium.**org/11668013/<https://codereview.chromium.org/1...
the related review)
>>>>>
>>>>
>>>>  The test loads a set of pages into tabs, then cycles through them in
>>>>> order and
>>>>> grabs the histogram for "MPArch.RWH_**TabSwitchPaintDuration". I
>>>>> believe that
>>>>> metric is the time from RenderWidget::WasShown is called until the
>>>>> first paint
>>>>> is finished. I don't know what the future plans for the test are.
>>>>> Perhaps Tony
>>>>> can give some more insight.
>>>>>
>>>>
>>>> This test is pretty similar to the one nduca linked above.
>>>>
https://codereview.chromium.**org/11668013/<https://codereview.chromium.org/1...
>>>>
>>>> Would it make sense to consolidate these tests? That one is also using
>>>> Telemetry
>>>> at the core level instead of at the page level, which seems to make
>>>> more sense
>>>> in this case, instead of using a dummy page set.
>>>>
>>>>
https://codereview.chromium.**org/13328004/<https://codereview.chromium.org/1...
>>>>
>>>
>>>
>>
>

Powered by Google App Engine
This is Rietveld 408576698